Package org.forgerock.http.oauth2
Class OAuth2
java.lang.Object
org.forgerock.http.oauth2.OAuth2
OAuth2 utility class.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getBearerAccessToken
(String authorizationHeader) Extracts the bearer token from the request's authorization header.
-
Method Details
-
getBearerAccessToken
Extracts the bearer token from the request's authorization header.Expected ABNF format (as per RFC 6750):
b64token = 1*( ALPHA / DIGIT / "-" / "." / "_" / "~" / "+" / "/" ) *"=" credentials = "Bearer" 1*SP b64token
- Parameters:
authorizationHeader
- The authorization header from the request.- Returns:
- The access token, or
null
if the access token was not present or was not using Bearer authorization.
-