public class AdminServer extends Object implements ServerAdmin
| Constructor and Description |
|---|
AdminServer(Map env) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionClosed(MessageConnection mc)
Informs that a transport connection has been closed.
|
MessageConnection |
connectionOpen(MessageConnection mc)
Tells that a new client is arrived and an
implementation of this method is called to verify this client,
for example, to do authentication, to add a encription level to secure
the connection etc.
|
Subject |
getSubject(MessageConnection mc)
Returns an
javax.security.auth.Subject object used for a server to authorize any request from the specified connection. |
public AdminServer(Map env)
public MessageConnection connectionOpen(MessageConnection mc) throws IOException
ServerAdminconnectionOpen in interface ServerAdminmc - an MessageConnection object which has
been established.MessageConnection object enhansed.IOException - Any of the usual Input/Output related exceptions during the verification.public void connectionClosed(MessageConnection mc)
ServerAdminconnectionClosed in interface ServerAdminmc - a MessageConnection object which has been closed.public Subject getSubject(MessageConnection mc)
ServerAdminjavax.security.auth.Subject object used for a server to authorize any request from the specified connection.getSubject in interface ServerAdminmc - the specified connection.Copyright © 2019 Terracotta, Inc.. All rights reserved.