public class AuthServiceImpl<T> extends ServiceBaseImpl<T> implements AuthService
| Constructor and Description |
|---|
AuthServiceImpl(Authenticator authenticator,
SessionManager<T> sessionManager)
Creates a new authentication service implementation with the
given authenticator and session manager.
|
| Modifier and Type | Method and Description |
|---|---|
Authenticator |
getAuthenticator()
Returns the receiver's authenticator.
|
SessionId |
login(StatelessClientContext context,
String user,
char[] password)
Logs in the client with the given context, provided the given
credentials are acceptable.
|
void |
logout(ClientContext context)
Logs out the client with the given context.
|
getSessionManagerpublic AuthServiceImpl(Authenticator authenticator, SessionManager<T> sessionManager)
authenticator - The authenticator.sessionManager - The session manager.public Authenticator getAuthenticator()
public SessionId login(StatelessClientContext context, String user, char[] password) throws RemoteException
AuthServicelogin in interface AuthServicecontext - The context.user - The user name.password - The password. Upon return, its contents are
cleared (on the server) by overwriting all prior characters
with the nul ('\0') character.RemoteException - Thrown if the operation cannot be
completed.public void logout(ClientContext context) throws RemoteException
AuthServicelogout in interface AuthServicecontext - The context.RemoteException - Thrown if the operation cannot be
completed.Copyright © 2015. All Rights Reserved.