public final class AgentSessionImpl extends RMIJRMPServerImpl implements AgentSession, Unreferenced
Provides controlled access to the creation of a
RMIConnection to a remote
MBeanServer.
Session.ConnectionMode| Modifier and Type | Method and Description |
|---|---|
void |
close()
Hides the IOException.
|
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.
|
RMIConnection |
newClient(Object credentials) |
void |
unreferenced() |
closeClient, closeServer, export, getProtocol, makeClient, toStubclientClosed, getDefaultClassLoader, getMBeanServer, getVersion, setDefaultClassLoader, setMBeanServerpublic void close()
Hides the IOException.
close in interface Closeableclose in interface AutoCloseablepublic Session.ConnectionMode getConnectionMode()
This method may be called before or after Session.login(java.lang.String, char[]).
getConnectionMode in interface Sessionpublic void login(String identifier,
char[] password)
throws SessionException
login in interface Sessionidentifier - The identifier for the identity.password - The password authenticating the identity.SessionException - From the session implementation.public RMIConnection newClient(Object credentials)
throws IOException
newClient in interface RMIServernewClient in class RMIServerImplIOExceptionpublic void unreferenced()
unreferenced in interface UnreferencedCopyright © 2003-2019 Serge Brisson. All Rights Reserved.