@ThreadSafe public final class SimpleAuthenticationProvider extends Object implements AuthenticationProvider
AuthenticationProvider.Factory
Constructor and Description |
---|
SimpleAuthenticationProvider()
Constructs a new
SimpleAuthenticationProvider . |
Modifier and Type | Method and Description |
---|---|
void |
authenticate(String user,
String password)
The authenticate method is called by the
PlainSaslServerCallbackHandler in
the PlainSaslServer layer to authenticate users for their requests. |
public SimpleAuthenticationProvider()
SimpleAuthenticationProvider
.public void authenticate(String user, String password) throws AuthenticationException
AuthenticationProvider
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
.authenticate
in interface AuthenticationProvider
user
- The username received over the connection requestpassword
- The password received over the connection requestAuthenticationException
- when a user is found to be invalid by the implementationCopyright © 2023. All Rights Reserved.