Class AuthenticationHelper


  • public class AuthenticationHelper
    extends Object
    Contains helper methods to enforce authentication
    • Constructor Detail

      • AuthenticationHelper

        public AuthenticationHelper()
    • Method Detail

      • isEnforceAuthEnabled

        public boolean isEnforceAuthEnabled()
      • enforceAuthentication

        public boolean enforceAuthentication​(ServerCnxn connection,
                                             int xid)
                                      throws IOException
        Returns true when authentication enforcement was success otherwise returns false also closes the connection
        Parameters:
        connection - server connection
        xid - current operation xid
        Returns:
        true when authentication enforcement is success otherwise false
        Throws:
        IOException
      • isSaslAuthRequired

        public boolean isSaslAuthRequired()