org.opends.server.protocols.jmx
Class RmiAuthenticator

java.lang.Object
  extended by org.opends.server.protocols.jmx.RmiAuthenticator
All Implemented Interfaces:
javax.management.remote.JMXAuthenticator

public class RmiAuthenticator
extends java.lang.Object
implements javax.management.remote.JMXAuthenticator

A RMIAuthenticator manages authentication for the secure RMI connectors. It receives authentication requests from clients as a SASL/PLAIN challenge and relies on a SASL server plus the local LDAP authentication accept or reject the user being connected.


Constructor Summary
RmiAuthenticator(JmxConnectionHandler jmxConnectionHandler)
          Constructs a RmiAuthenticator.
 
Method Summary
 javax.security.auth.Subject authenticate(java.lang.Object credentials)
          Authenticates a RMI client.
 void setFinalizedPhase(boolean finalizedPhase)
          Set that we are in the finalized phase.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RmiAuthenticator

public RmiAuthenticator(JmxConnectionHandler jmxConnectionHandler)
Constructs a RmiAuthenticator.

Parameters:
jmxConnectionHandler - The jmxConnectionHandler associated to this RmiAuthenticator
Method Detail

setFinalizedPhase

public void setFinalizedPhase(boolean finalizedPhase)
Set that we are in the finalized phase.

Parameters:
finalizedPhase - Set to true, it indicates that we are in the finalized phase that that we other connection should be accepted.
See Also:
JmxConnectionHandler

authenticate

public javax.security.auth.Subject authenticate(java.lang.Object credentials)
Authenticates a RMI client. The credentials received are composed of a SASL/PLAIN authentication id and a password.

Specified by:
authenticate in interface javax.management.remote.JMXAuthenticator
Parameters:
credentials - the SASL/PLAIN credentials to validate
Returns:
a Subject holding the principal(s) authenticated