Class SaslQuorumAuthLearner

    • Constructor Summary

      Constructors 
      Constructor Description
      SaslQuorumAuthLearner​(boolean quorumRequireSasl, java.lang.String quorumServicePrincipal, java.lang.String loginContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void authenticate​(java.net.Socket sock, java.lang.String hostName)
      Performs an authentication step for the given socket connection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SaslQuorumAuthLearner

        public SaslQuorumAuthLearner​(boolean quorumRequireSasl,
                                     java.lang.String quorumServicePrincipal,
                                     java.lang.String loginContext)
                              throws javax.security.sasl.SaslException
        Throws:
        javax.security.sasl.SaslException
    • Method Detail

      • authenticate

        public void authenticate​(java.net.Socket sock,
                                 java.lang.String hostName)
                          throws java.io.IOException
        Description copied from interface: QuorumAuthLearner
        Performs an authentication step for the given socket connection.
        Specified by:
        authenticate in interface QuorumAuthLearner
        Parameters:
        sock - socket connection to other quorum peer server
        hostName - host name of other quorum peer server
        Throws:
        java.io.IOException - if there is an authentication failure