Package org.apache.accumulo.core.rpc
Class SaslConnectionParams
- java.lang.Object
-
- org.apache.accumulo.core.rpc.SaslConnectionParams
-
public class SaslConnectionParams extends Object
Connection parameters for setting up a TSaslTransportFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SaslConnectionParams.QualityOfProtection
Enumeration aroundSasl.QOP
static class
SaslConnectionParams.SaslMechanism
The SASL mechanism to use for authentication
-
Field Summary
Fields Modifier and Type Field Description protected CallbackHandler
callbackHandler
protected String
kerberosServerPrimary
protected SaslConnectionParams.SaslMechanism
mechanism
protected String
principal
protected SaslConnectionParams.QualityOfProtection
qop
protected Map<String,String>
saslProperties
-
Constructor Summary
Constructors Constructor Description SaslConnectionParams(ClientConfiguration conf, AuthenticationToken token)
SaslConnectionParams(AccumuloConfiguration conf, AuthenticationToken token)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 authenticationString
getPrincipal()
The principal of the logged in user for SASLprotected 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()
-
-
-
Field Detail
-
principal
protected String principal
-
qop
protected SaslConnectionParams.QualityOfProtection qop
-
kerberosServerPrimary
protected String kerberosServerPrimary
-
mechanism
protected SaslConnectionParams.SaslMechanism mechanism
-
callbackHandler
protected CallbackHandler callbackHandler
-
-
Constructor Detail
-
SaslConnectionParams
public SaslConnectionParams(AccumuloConfiguration conf, AuthenticationToken token)
-
SaslConnectionParams
public SaslConnectionParams(ClientConfiguration conf, AuthenticationToken token)
-
-
Method Detail
-
updateFromToken
protected void updateFromToken(AuthenticationToken token)
-
getProperties
protected static Map<String,String> getProperties(AccumuloConfiguration conf)
-
updatePrincipalFromUgi
protected void updatePrincipalFromUgi()
-
updateFromConfiguration
protected void updateFromConfiguration(ClientConfiguration conf)
-
getQualityOfProtection
public SaslConnectionParams.QualityOfProtection getQualityOfProtection()
The quality of protection used with SASL. SeeSasl.QOP
for more information.
-
getKerberosServerPrimary
public String getKerberosServerPrimary()
The 'primary' component from the Kerberos principals that servers are configured to use.
-
getPrincipal
public String getPrincipal()
The principal of the logged in user for SASL
-
getMechanism
public SaslConnectionParams.SaslMechanism getMechanism()
The SASL mechanism to use for authentication
-
getCallbackHandler
public CallbackHandler getCallbackHandler()
The SASL callback handler for this mechanism, may be null.
-
getDefaultRealm
public static String getDefaultRealm()
-
-