public class AwsAuthenticator extends ChallengeAuthenticator
ChallengeScheme.HTTP_AWS_S3 scheme.| Constructor and Description |
|---|
AwsAuthenticator(Context context,
boolean optional,
String realm)
Creates a new HttpAwsS3Authenticator instance.
|
AwsAuthenticator(Context context,
boolean optional,
String realm,
Verifier verifier)
Creates a new HttpAwsS3Authenticator instance.
|
AwsAuthenticator(Context context,
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.
|
AwsVerifier |
getVerifier()
Returns the credentials verifier.
|
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, setRechallengingauthenticated, beforeHandle, getEnroler, isMultiAuthenticating, isOptional, setEnroler, setMultiAuthenticating, setOptional, unauthenticatedafterHandle, doHandle, getNext, handle, hasNext, setNext, setNext, start, stopcreateFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwnerpublic AwsAuthenticator(Context context, String realm)
context - The contextrealm - The authentication realmpublic AwsAuthenticator(Context context, boolean optional, String realm)
context - The contextoptional - Indicates if the authentication success is optionalrealm - The authentication realmpublic long getMaxRequestAge()
A negative or zero value indicates no age restriction. The default value is 15 minutes.
public void setMaxRequestAge(long value)
A negative or zero value indicates no age restriction. The default value is 15 minutes.
public AwsVerifier getVerifier()
ChallengeAuthenticatorgetVerifier in class ChallengeAuthenticatorpublic void setVerifier(Verifier verifier)
wrappedVerifier via the
setWrappedVerifier(LocalVerifier) method.setVerifier in class ChallengeAuthenticatorverifier - The credentials verifier.public LocalVerifier getWrappedVerifier()
public void setWrappedVerifier(LocalVerifier verifier)
verifier - The local verifier to wrapCopyright © 2005–2015. All rights reserved.