public class BearerTokenExtractor extends Object
Expected ABNF format (as per RFC 6750):
b64token = 1*( ALPHA / DIGIT / "-" / "." / "_" / "~" / "+" / "/" ) *"=" credentials = "Bearer" 1*SP b64token
Constructor and Description |
---|
BearerTokenExtractor() |
Modifier and Type | Method and Description |
---|---|
String |
getAccessToken(String authorizationHeader)
Pulls the access token off of the request, by looking for the Authorization header containing a Bearer token.
|
public BearerTokenExtractor()
public String getAccessToken(String authorizationHeader)
authorizationHeader
- The authorization header from the request.null
if the access token was not present or was not using Bearer
authorization.Copyright © 2014 ForgeRock AS. All rights reserved.