public class BearerAuthorizationProvider extends Object implements AuthorizationProvider
| Constructor and Description |
|---|
BearerAuthorizationProvider(String token)
Authorization Provider for BEARER authentication.
|
| Modifier and Type | Method and Description |
|---|---|
org.restlet.data.ChallengeResponse |
getChallengeResponse(org.restlet.data.Request request,
Map<String,Object> header)
Construct a ChallengeResponse based on the settings in this provider.
|
public BearerAuthorizationProvider(String token)
token - the token for authenticationpublic org.restlet.data.ChallengeResponse getChallengeResponse(org.restlet.data.Request request,
Map<String,Object> header)
throws GeneralSecurityException
AuthorizationProvidergetChallengeResponse in interface AuthorizationProviderrequest - The request involved. May or may not need to be referenced when constructing the response.header - The associated headers. Also may or may not need to be referenced.ChallengeResponseGeneralSecurityException - if any errors occurred while constructing the response.