Class BearerToken
- java.lang.Object
-
- org.forgerock.http.header.authorization.BearerToken
-
public class BearerToken extends Object
A rich representation of bearer credentials.
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
The name of theBearer
challenge scheme.static CredentialsParser<BearerToken>
PARSER
The parser forBearer
credentials.
-
Constructor Summary
Constructors Constructor Description BearerToken(String token)
Construct a new set ofBearer
authorization credentials.
-
-
-
Field Detail
-
NAME
public static final String NAME
The name of theBearer
challenge scheme.- See Also:
- Constant Field Values
-
PARSER
public static final CredentialsParser<BearerToken> PARSER
The parser forBearer
credentials.
-
-
Constructor Detail
-
BearerToken
public BearerToken(String token) throws MalformedHeaderException
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.
-
-