public class AwsAuthenticator extends ChallengeAuthenticator
ChallengeScheme.HTTP_AWS_S3
scheme.Constructor and Description |
---|
AwsAuthenticator(Context context,
boolean optional,
java.lang.String realm)
Creates a new HttpAwsS3Authenticator instance.
|
AwsAuthenticator(Context context,
boolean optional,
java.lang.String realm,
Verifier verifier)
Creates a new HttpAwsS3Authenticator instance.
|
AwsAuthenticator(Context context,
java.lang.String realm)
Creates a new HttpAwsS3Authenticator instance.
|
Modifier and Type | Method and Description |
---|---|
long |
getMaxRequestAge()
Returns the maximum age of a request, in milliseconds, before it is
considered stale.
|
org.restlet.ext.crypto.internal.AwsVerifier |
getVerifier() |
LocalVerifier |
getWrappedVerifier()
Returns the secret verifier that will be wrapped by the real verifier
supporting all the HTTP AWS verifications.
|
void |
setMaxRequestAge(long value)
Sets the maximum age of a request, in milliseconds, before it is
considered stale.
|
void |
setVerifier(Verifier verifier)
Sets the internal verifier.
|
void |
setWrappedVerifier(LocalVerifier verifier)
Sets the secret verifier that will be wrapped by the real verifier
supporting all the HTTP AWS verifications.
|
authenticate, challenge, createChallengeRequest, forbid, getRealm, getScheme, isRechallenging, setRealm, setRechallenging
authenticated, beforeHandle, getEnroler, isMultiAuthenticating, isOptional, setEnroler, setMultiAuthenticating, setOptional, unauthenticated
afterHandle, doHandle, getNext, handle, hasNext, setNext, setNext, start, stop
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner
public AwsAuthenticator(Context context, boolean optional, java.lang.String realm)
context
- The contextoptional
- Indicates if the authentication success is optionalrealm
- The authentication realmpublic AwsAuthenticator(Context context, boolean optional, java.lang.String realm, Verifier verifier)
context
- The contextoptional
- Indicates if the authentication success is optionalrealm
- The authentication realmverifier
- public AwsAuthenticator(Context context, java.lang.String realm)
context
- The contextrealm
- The authentication realmpublic long getMaxRequestAge()
A negative or zero value indicates no age restriction. The default value is 15 minutes.
public org.restlet.ext.crypto.internal.AwsVerifier getVerifier()
getVerifier
in class ChallengeAuthenticator
public LocalVerifier getWrappedVerifier()
public void setMaxRequestAge(long value)
A negative or zero value indicates no age restriction. The default value is 15 minutes.
public void setVerifier(Verifier verifier)
wrappedVerifier
via the
setWrappedVerifier(LocalVerifier)
method.setVerifier
in class ChallengeAuthenticator
public void setWrappedVerifier(LocalVerifier verifier)
verifier
- The local verifier to wrapCopyright © 2005-2024 Restlet.