public interface Session
extends Remote
A remote object implements a session when it has security requirements. A session allows a client to provide identification and authentification. The mode of connection to the remote object may have an effect on the security constraints.
A session object is created by a remote session factory object with an appropriate connection mode.
| Modifier and Type | Interface and Description |
|---|---|
static class |
Session.ConnectionMode
Connection mode.
|
| Modifier and Type | Method and Description |
|---|---|
Session.ConnectionMode |
getConnectionMode()
Gets the connection mode.
|
void |
login(String identifier,
char[] password)
Identifies and authenticates the identity associated with the Session.
|
void |
logout()
Logs out.
|
@Nullable @CheckReturnValue Session.ConnectionMode getConnectionMode() throws RemoteException
This method may be called before or after login(java.lang.String, char[]).
RemoteException - From RMI RunTime.void login(@Nullable
String identifier,
@Nullable
char[] password)
throws RemoteException,
SessionException
identifier - The identifier for the identity.password - The password authenticating the identity.RemoteException - From RMI RunTime.SessionException - From the session implementation.void logout()
throws RemoteException,
SessionException
RemoteException - From RMI RunTime.SessionException - When the session logout fails.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.