Class AuthenticationProviderBasic

    • Constructor Detail

      • AuthenticationProviderBasic

        public AuthenticationProviderBasic()
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • readData

        public static byte[] readData​(java.lang.String data)
                               throws java.io.IOException,
                                      java.net.URISyntaxException,
                                      java.lang.InstantiationException,
                                      java.lang.IllegalAccessException
        Throws:
        java.io.IOException
        java.net.URISyntaxException
        java.lang.InstantiationException
        java.lang.IllegalAccessException
      • initialize

        public void initialize​(ServiceConfiguration config)
                        throws java.io.IOException
        Description copied from interface: AuthenticationProvider
        Perform initialization for the authentication provider.
        Specified by:
        initialize in interface AuthenticationProvider
        Parameters:
        config - broker config object
        Throws:
        java.io.IOException - if the initialization fails
      • getAuthMethodName

        public java.lang.String getAuthMethodName()
        Specified by:
        getAuthMethodName in interface AuthenticationProvider
        Returns:
        the authentication method name supported by this provider
      • authenticate

        public java.lang.String authenticate​(AuthenticationDataSource authData)
                                      throws javax.naming.AuthenticationException
        Description copied from interface: AuthenticationProvider
        Validate the authentication for the given credentials with the specified authentication data. This method is useful in one stage authn, if you're not doing one stage or if you're providing your own state implementation for one stage authn, it should throw an exception.
        Specified by:
        authenticate in interface AuthenticationProvider
        Parameters:
        authData - provider specific authentication data
        Returns:
        the "role" string for the authenticated connection, if the authentication was successful
        Throws:
        javax.naming.AuthenticationException - if the credentials are not valid