Class NoAuthAuthenticator

  • All Implemented Interfaces:
    Authenticator

    public class NoAuthAuthenticator
    extends java.lang.Object
    implements Authenticator
    This class is a placeholder implementation of the Authenticator interface which performs no authentication of outgoing REST API requests.
    • Constructor Detail

      • NoAuthAuthenticator

        public NoAuthAuthenticator()
      • NoAuthAuthenticator

        public NoAuthAuthenticator​(java.util.Map<java.lang.String,​java.lang.String> config)
    • Method Detail

      • authenticationType

        public java.lang.String authenticationType()
        Description copied from interface: Authenticator
        Returns the authentication type associated with the Authenticator instance.
        Specified by:
        authenticationType in interface Authenticator
        Returns:
        a string representing the authentication type (e.g. "iam", "basic", "icp4d", etc.)
      • authenticate

        public void authenticate​(okhttp3.Request.Builder builder)
        Description copied from interface: Authenticator
        Perform the necessary authentication steps for the specified request.
        Specified by:
        authenticate in interface Authenticator
        Parameters:
        builder - the Request.Builder instance to authenticate
      • validate

        public void validate()
        Description copied from interface: Authenticator
        Validates the current set of configuration information in the Authenticator.
        Specified by:
        validate in interface Authenticator