Package org.opends.server.protocols.jmx
Class RmiAuthenticator
- java.lang.Object
-
- org.opends.server.protocols.jmx.RmiAuthenticator
-
- All Implemented Interfaces:
JMXAuthenticator
public class RmiAuthenticator extends Object implements JMXAuthenticator
ARMIAuthenticatormanages 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
Constructors Constructor Description RmiAuthenticator(JmxConnectionHandler jmxConnectionHandler)Constructs aRmiAuthenticator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Subjectauthenticate(Object credentials)Authenticates a RMI client.voidsetFinalizedPhase(boolean finalizedPhase)Set that we are in the finalized phase.
-
-
-
Constructor Detail
-
RmiAuthenticator
public RmiAuthenticator(JmxConnectionHandler jmxConnectionHandler)
Constructs aRmiAuthenticator.- 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 Subject authenticate(Object credentials)
Authenticates a RMI client. The credentials received are composed of a SASL/PLAIN authentication id and a password.- Specified by:
authenticatein interfaceJMXAuthenticator- Parameters:
credentials- the SASL/PLAIN credentials to validate- Returns:
- a
Subjectholding the principal(s) authenticated
-
-