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 StringNAMEThe name of theBearerchallenge scheme.static CredentialsParser<BearerToken>PARSERThe parser forBearercredentials. 
- 
Constructor Summary
Constructors Constructor Description BearerToken(String token)Construct a new set ofBearerauthorization credentials. 
 - 
 
- 
- 
Field Detail
- 
NAME
public static final String NAME
The name of theBearerchallenge scheme.- See Also:
 - Constant Field Values
 
 
- 
PARSER
public static final CredentialsParser<BearerToken> PARSER
The parser forBearercredentials. 
 - 
 
- 
Constructor Detail
- 
BearerToken
public BearerToken(String token) throws MalformedHeaderException
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.
 
 - 
 
 -