Class CustomAuthenticationProvider

    • Constructor Detail

      • CustomAuthenticationProvider

        public CustomAuthenticationProvider​(java.lang.Class<?> customProviderClass)
        Constructs a new custom authentication provider.
        Parameters:
        customProviderClass - the provider class
    • Method Detail

      • getCustomProvider

        public AuthenticationProvider getCustomProvider()
        Returns:
        the custom authentication provider
      • authenticate

        public void authenticate​(java.lang.String user,
                                 java.lang.String password)
                          throws javax.security.sasl.AuthenticationException
        Description copied from interface: AuthenticationProvider
        The authenticate method is called by the PlainSaslServerCallbackHandler in the PlainSaslServer layer to authenticate users for their requests. If a user is to be granted, return nothing/throw nothing. When a user is to be disallowed, throw an appropriate AuthenticationException.
        Specified by:
        authenticate in interface AuthenticationProvider
        Parameters:
        user - The username received over the connection request
        password - The password received over the connection request
        Throws:
        javax.security.sasl.AuthenticationException - when a user is found to be invalid by the implementation