public final class OAuth2 extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getBearerAccessToken(String authorizationHeader)
Extracts the bearer token from the request's authorization header.
|
public static String getBearerAccessToken(String authorizationHeader)
Expected ABNF format (as per RFC 6750):
b64token = 1*( ALPHA / DIGIT / "-" / "." / "_" / "~" / "+" / "/" ) *"="
credentials = "Bearer" 1*SP b64token
authorizationHeader
- The authorization header from the request.null
if the access token was not present or was not using Bearer
authorization.Copyright © 2010-2018, ForgeRock All Rights Reserved.