|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.ws.stateless.StatelessServiceBaseImpl
org.marketcetera.util.ws.stateful.ServiceBaseImpl<T>
org.marketcetera.util.ws.stateful.AuthServiceImpl<T>
public class AuthServiceImpl<T>
An authentication service implementation.
| Constructor Summary | |
|---|---|
AuthServiceImpl(Authenticator authenticator,
SessionManager<T> sessionManager)
Creates a new authentication service implementation with the given authenticator and session manager. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.marketcetera.util.ws.stateful.ServiceBaseImpl |
|---|
getSessionManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthServiceImpl(Authenticator authenticator,
SessionManager<T> sessionManager)
authenticator - The authenticator.sessionManager - The session manager.| Method Detail |
|---|
public Authenticator getAuthenticator()
public SessionId login(StatelessClientContext context,
String user,
char[] password)
throws RemoteException
AuthService
login 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
AuthService
logout in interface AuthServicecontext - The context.
RemoteException - Thrown if the operation cannot be
completed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||