public abstract class RestEncodingAuthorizationProvider extends Object implements AuthorizationProvider
| Constructor and Description |
|---|
RestEncodingAuthorizationProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
encode(String rest)
Encode the rest-like string using this
AuthorizationProvider's mechanisms. |
static String |
formatAuthorizationCredentials(String path,
String methodName,
String contentMd5,
String contentType,
String date)
Formats the given components for a rest auth request.
|
org.restlet.data.ChallengeResponse |
getChallengeResponse(org.restlet.data.Request request,
Map<String,Object> headers)
Construct a ChallengeResponse based on the settings in this provider.
|
protected abstract org.restlet.data.ChallengeScheme |
getChallengeScheme()
The ChallengeScheme associated with this specific implementation.
|
protected abstract String |
getDateKey()
Once we've found or created a date, we should store it into the http headers using this key.
|
public org.restlet.data.ChallengeResponse getChallengeResponse(org.restlet.data.Request request,
Map<String,Object> headers)
throws GeneralSecurityException
AuthorizationProvidergetChallengeResponse in interface AuthorizationProviderrequest - The request involved. May or may not need to be referenced when constructing the response.headers - The associated headers. Also may or may not need to be referenced.ChallengeResponseGeneralSecurityException - if any errors occurred while constructing the response.protected abstract org.restlet.data.ChallengeScheme getChallengeScheme()
ChallengeScheme definitionprotected abstract String getDateKey()
protected abstract String encode(String rest) throws GeneralSecurityException
AuthorizationProvider's mechanisms.rest - the rest-like source stringGeneralSecurityException - if encoding fails