public class AuthenticationHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ENFORCE_AUTH_ENABLED |
static String |
ENFORCE_AUTH_SCHEMES |
static String |
SASL_AUTH_SCHEME |
static String |
SESSION_REQUIRE_CLIENT_SASL_AUTH |
Constructor and Description |
---|
AuthenticationHelper() |
Modifier and Type | Method and Description |
---|---|
boolean |
enforceAuthentication(ServerCnxn connection,
int xid)
Returns true when authentication enforcement was success otherwise returns false
also closes the connection
|
boolean |
isEnforceAuthEnabled() |
boolean |
isSaslAuthRequired() |
public static final String ENFORCE_AUTH_ENABLED
public static final String ENFORCE_AUTH_SCHEMES
public static final String SESSION_REQUIRE_CLIENT_SASL_AUTH
public static final String SASL_AUTH_SCHEME
public boolean isEnforceAuthEnabled()
public boolean enforceAuthentication(ServerCnxn connection, int xid) throws IOException
connection
- server connectionxid
- current operation xidIOException
public boolean isSaslAuthRequired()
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.