Package org.apache.zookeeper.server
Class AuthenticationHelper
java.lang.Object
org.apache.zookeeper.server.AuthenticationHelper
Contains helper methods to enforce authentication
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
enforceAuthentication
(ServerCnxn connection, int xid) Returns true when authentication enforcement was success otherwise returns false also closes the connectionboolean
boolean
-
Field Details
-
ENFORCE_AUTH_ENABLED
- See Also:
-
ENFORCE_AUTH_SCHEMES
- See Also:
-
SESSION_REQUIRE_CLIENT_SASL_AUTH
- See Also:
-
SASL_AUTH_SCHEME
- See Also:
-
-
Constructor Details
-
AuthenticationHelper
public AuthenticationHelper()
-
-
Method Details
-
isEnforceAuthEnabled
public boolean isEnforceAuthEnabled() -
enforceAuthentication
Returns true when authentication enforcement was success otherwise returns false also closes the connection- Parameters:
connection
- server connectionxid
- current operation xid- Returns:
- true when authentication enforcement is success otherwise false
- Throws:
IOException
-
isSaslAuthRequired
public boolean isSaslAuthRequired()
-