public abstract class AbstractBasicAuthentication extends Object implements AuthenticationImplementation
| Constructor and Description |
|---|
AbstractBasicAuthentication() |
| Modifier and Type | Method and Description |
|---|---|
NotifyFuture<UserInformation> |
authenticate(CallbackHandler callbackHandler)
Authenticate a user
|
protected abstract String |
getPlainPassword() |
UserInformation |
getUser(String user) |
protected UserInformation |
processAuthenticate(Callback[] callbacks,
String plainPassword) |
public NotifyFuture<UserInformation> authenticate(CallbackHandler callbackHandler)
This method simply implements an any authentication which allows access to session with or without user names. No password is checked.
This method should be overridden if a different authentication scheme is required.
authenticate in interface AuthenticationImplementationusername - the usernamepassword - the passwordsessionResultProperties - the session properties that will be returned to the client.
The method may add or remove properties as it likes.null if it is an
anonymous sessionAuthenticationException - if the user was rejectedprotected abstract String getPlainPassword()
public UserInformation getUser(String user)
getUser in interface AuthenticationImplementationprotected UserInformation processAuthenticate(Callback[] callbacks, String plainPassword) throws AuthenticationException
AuthenticationException