public class AWSV4AuthorizationProvider extends Object implements AuthorizationProvider
| Constructor and Description |
|---|
AWSV4AuthorizationProvider(AWSCredentials credentials)
Creates a new AWSV4AuthorizationProvider instance
|
| Modifier and Type | Method and Description |
|---|---|
org.restlet.data.ChallengeResponse |
getChallengeResponse(org.restlet.data.Request request,
Map<String,Object> headers)
Returns a ChallengeResponse with a signed string for AWS
|
public AWSV4AuthorizationProvider(AWSCredentials credentials)
credentials - AWSCredentials Amazon Web Services credentialspublic org.restlet.data.ChallengeResponse getChallengeResponse(org.restlet.data.Request request,
Map<String,Object> headers)
throws GeneralSecurityException
getChallengeResponse in interface AuthorizationProviderrequest - restlet request instanceheaders - request headers. It will contain only the content-type with charsetGeneralSecurityException - if there was an error while the authentication was made