Class AuthenticationHelper


  • public class AuthenticationHelper
    extends java.lang.Object
    Contains helper methods to enforce authentication
    • Field Detail

      • ENFORCE_AUTH_ENABLED

        public static final java.lang.String ENFORCE_AUTH_ENABLED
        See Also:
        Constant Field Values
      • ENFORCE_AUTH_SCHEMES

        public static final java.lang.String ENFORCE_AUTH_SCHEMES
        See Also:
        Constant Field Values
      • SESSION_REQUIRE_CLIENT_SASL_AUTH

        public static final java.lang.String SESSION_REQUIRE_CLIENT_SASL_AUTH
        See Also:
        Constant Field Values
      • SASL_AUTH_SCHEME

        public static final java.lang.String SASL_AUTH_SCHEME
        See Also:
        Constant Field Values
    • Constructor Detail

      • AuthenticationHelper

        public AuthenticationHelper()
    • Method Detail

      • isEnforceAuthEnabled

        public boolean isEnforceAuthEnabled()
      • enforceAuthentication

        public boolean enforceAuthentication​(ServerCnxn connection,
                                             int xid)
                                      throws java.io.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:
        java.io.IOException
      • isSaslAuthRequired

        public boolean isSaslAuthRequired()