com.sun.jmx.remote.opt.security
Class AdminServer

java.lang.Object
  extended by com.sun.jmx.remote.opt.security.AdminServer
All Implemented Interfaces:
ServerAdmin

public class AdminServer
extends Object
implements ServerAdmin


Constructor Summary
AdminServer(Map env)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminServer

public AdminServer(Map env)
Method Detail

connectionOpen

public MessageConnection connectionOpen(MessageConnection mc)
                                 throws IOException
Description copied from interface: ServerAdmin
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.

Specified by:
connectionOpen in interface ServerAdmin
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.

connectionClosed

public void connectionClosed(MessageConnection mc)
Description copied from interface: ServerAdmin
Informs that a transport connection has been closed.

Specified by:
connectionClosed in interface ServerAdmin
Parameters:
mc - a MessageConnection object which has been closed.

getSubject

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

Specified by:
getSubject in interface ServerAdmin
Parameters:
mc - the specified connection.


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