com.sun.jmx.remote.generic
Interface ServerAdmin

All Known Implementing Classes:
AdminServer

public interface ServerAdmin

This interface specifies methods to administrate a transport connection server.


Method Summary
 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.
 

Method Detail

connectionOpen

MessageConnection connectionOpen(MessageConnection mc)
                                 throws IOException
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.

Parameters:
mc - an MessageConnection object which has been established.
Returns:
an MessageConnection object enhansed.
Throws:
IOException - Any of the usual Input/Output related exceptions during the verification.
SecurityException - if the verification failed.

connectionClosed

void connectionClosed(MessageConnection mc)
Informs that a transport connection has been closed.

Parameters:
mc - a MessageConnection object which has been closed.

getSubject

Subject getSubject(MessageConnection mc)
Returns an javax.security.auth.Subject object used for a server to authorize any request from the specified connection.

Parameters:
mc - the specified connection.


Copyright © 2014 Terracotta, Inc.. All rights reserved.