public interface AuthenticationProvider
AuthType.SIMPLE
and AuthType.CUSTOM
.Modifier and Type | Interface and Description |
---|---|
static class |
AuthenticationProvider.Factory
Factory for
AuthenticationProvider . |
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. |
void authenticate(String user, String password) throws AuthenticationException
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
.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.