public class SaslConnectionParams extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SaslConnectionParams.QualityOfProtection
Enumeration around
Sasl.QOP |
static class |
SaslConnectionParams.SaslMechanism
The SASL mechanism to use for authentication
|
Modifier and Type | Field and Description |
---|---|
protected CallbackHandler |
callbackHandler |
protected String |
kerberosServerPrimary |
protected SaslConnectionParams.SaslMechanism |
mechanism |
protected String |
principal |
protected SaslConnectionParams.QualityOfProtection |
qop |
protected Map<String,String> |
saslProperties |
Constructor and Description |
---|
SaslConnectionParams(AccumuloConfiguration conf,
AuthenticationToken token) |
SaslConnectionParams(Properties properties,
AuthenticationToken token) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static SaslConnectionParams |
from(AccumuloConfiguration config,
AuthenticationToken token) |
CallbackHandler |
getCallbackHandler()
The SASL callback handler for this mechanism, may be null.
|
static String |
getDefaultRealm() |
String |
getKerberosServerPrimary()
The 'primary' component from the Kerberos principals that servers are configured to use.
|
SaslConnectionParams.SaslMechanism |
getMechanism()
The SASL mechanism to use for authentication
|
String |
getPrincipal()
The principal of the logged in user for SASL
|
SaslConnectionParams.QualityOfProtection |
getQualityOfProtection()
The quality of protection used with SASL.
|
Map<String,String> |
getSaslProperties() |
int |
hashCode() |
String |
toString() |
protected void |
updateFromConfiguration(Properties properties) |
protected void |
updateFromToken(AuthenticationToken token) |
protected void |
updatePrincipalFromUgi() |
protected String principal
protected SaslConnectionParams.QualityOfProtection qop
protected String kerberosServerPrimary
protected SaslConnectionParams.SaslMechanism mechanism
protected CallbackHandler callbackHandler
public SaslConnectionParams(AccumuloConfiguration conf, AuthenticationToken token)
public SaslConnectionParams(Properties properties, AuthenticationToken token)
public static SaslConnectionParams from(AccumuloConfiguration config, AuthenticationToken token)
protected void updateFromToken(AuthenticationToken token)
protected void updatePrincipalFromUgi()
protected void updateFromConfiguration(Properties properties)
public SaslConnectionParams.QualityOfProtection getQualityOfProtection()
Sasl.QOP
for more information.public String getKerberosServerPrimary()
public String getPrincipal()
public SaslConnectionParams.SaslMechanism getMechanism()
public CallbackHandler getCallbackHandler()
public static String getDefaultRealm()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.