Class RmiAuthenticator

  • All Implemented Interfaces:
    JMXAuthenticator

    public class RmiAuthenticator
    extends Object
    implements 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 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 Subject authenticate​(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 JMXAuthenticator
        Parameters:
        credentials - the SASL/PLAIN credentials to validate
        Returns:
        a Subject holding the principal(s) authenticated