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(ClientConfiguration conf,
AuthenticationToken token) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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
|
protected static Map<String,String> |
getProperties(AccumuloConfiguration conf) |
SaslConnectionParams.QualityOfProtection |
getQualityOfProtection()
The quality of protection used with SASL.
|
Map<String,String> |
getSaslProperties() |
int |
hashCode() |
String |
toString() |
protected void |
updateFromConfiguration(ClientConfiguration conf) |
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(ClientConfiguration conf, AuthenticationToken token)
protected void updateFromToken(AuthenticationToken token)
protected static Map<String,String> getProperties(AccumuloConfiguration conf)
protected void updatePrincipalFromUgi()
protected void updateFromConfiguration(ClientConfiguration conf)
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–2018 The Apache Software Foundation. All rights reserved.