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