Class AwsAuthenticator

    • Constructor Detail

      • AwsAuthenticator

        public AwsAuthenticator​(Context context,
                                boolean optional,
                                java.lang.String realm)
        Creates a new HttpAwsS3Authenticator instance.
        Parameters:
        context - The context
        optional - Indicates if the authentication success is optional
        realm - The authentication realm
      • AwsAuthenticator

        public AwsAuthenticator​(Context context,
                                boolean optional,
                                java.lang.String realm,
                                Verifier verifier)
        Creates a new HttpAwsS3Authenticator instance.
        Parameters:
        context - The context
        optional - Indicates if the authentication success is optional
        realm - The authentication realm
        verifier -
      • AwsAuthenticator

        public AwsAuthenticator​(Context context,
                                java.lang.String realm)
        Creates a new HttpAwsS3Authenticator instance.
        Parameters:
        context - The context
        realm - The authentication realm
    • Method Detail

      • getMaxRequestAge

        public long getMaxRequestAge()
        Returns the maximum age of a request, in milliseconds, before it is considered stale.

        A negative or zero value indicates no age restriction. The default value is 15 minutes.

      • getWrappedVerifier

        public LocalVerifier getWrappedVerifier()
        Returns the secret verifier that will be wrapped by the real verifier supporting all the HTTP AWS verifications.
        Returns:
        the local wrapped verifier
      • setMaxRequestAge

        public void setMaxRequestAge​(long value)
        Sets the maximum age of a request, in milliseconds, before it is considered stale.

        A negative or zero value indicates no age restriction. The default value is 15 minutes.

      • setWrappedVerifier

        public void setWrappedVerifier​(LocalVerifier verifier)
        Sets the secret verifier that will be wrapped by the real verifier supporting all the HTTP AWS verifications.
        Parameters:
        verifier - The local verifier to wrap