Class BearerToken
java.lang.Object
org.forgerock.http.header.authorization.BearerToken
A rich representation of bearer credentials.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of theBearer
challenge scheme.static final CredentialsParser<BearerToken>
The parser forBearer
credentials. -
Constructor Summary
ConstructorDescriptionBearerToken
(String token) Construct a new set ofBearer
authorization credentials. -
Method Summary
-
Field Details
-
NAME
The name of theBearer
challenge scheme.- See Also:
-
PARSER
The parser forBearer
credentials.
-
-
Constructor Details
-
BearerToken
Construct a new set ofBearer
authorization credentials.- Parameters:
token
- The token.- Throws:
IllegalArgumentException
- If the token is null.MalformedHeaderException
- If the token is an empty string.
-
-
Method Details