public abstract class AbstractBasicAuthentication extends Object implements org.eclipse.scada.sec.AuthenticationImplementation
| Constructor and Description |
|---|
AbstractBasicAuthentication() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.scada.utils.concurrent.NotifyFuture<org.eclipse.scada.sec.UserInformation> |
authenticate(org.eclipse.scada.sec.callback.CallbackHandler callbackHandler)
Authenticate a user
|
protected abstract String |
getPlainPassword() |
org.eclipse.scada.sec.UserInformation |
getUser(String user) |
protected org.eclipse.scada.sec.UserInformation |
processAuthenticate(org.eclipse.scada.sec.callback.Callback[] callbacks,
String plainPassword) |
public org.eclipse.scada.utils.concurrent.NotifyFuture<org.eclipse.scada.sec.UserInformation> authenticate(org.eclipse.scada.sec.callback.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 org.eclipse.scada.sec.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 sessionorg.eclipse.scada.sec.AuthenticationException - if the user was rejectedprotected abstract String getPlainPassword()
public org.eclipse.scada.sec.UserInformation getUser(String user)
getUser in interface org.eclipse.scada.sec.AuthenticationImplementationprotected org.eclipse.scada.sec.UserInformation processAuthenticate(org.eclipse.scada.sec.callback.Callback[] callbacks,
String plainPassword)
throws org.eclipse.scada.sec.AuthenticationException
org.eclipse.scada.sec.AuthenticationException