javax.security.auth.callback.Callbackpublic class PlainAuthenticateCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback
| Constructor | Description |
|---|---|
PlainAuthenticateCallback(char[] password) |
Creates a callback with the password provided by the client
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
authenticated() |
Returns true if client password matches expected password, false otherwise.
|
void |
authenticated(boolean authenticated) |
Sets the authenticated state.
|
char[] |
password() |
Returns the password provided by the client during SASL/PLAIN authentication
|
public PlainAuthenticateCallback(char[] password)
password - The password provided by the client during SASL/PLAIN authenticationpublic char[] password()
public boolean authenticated()
public void authenticated(boolean authenticated)
authenticated - true indicates successful authentication