public class AuthenticationConfigurationBuilder extends AbstractSecurityConfigurationChildBuilder implements Builder<AuthenticationConfiguration>
Modifier and Type | Field and Description |
---|---|
private javax.security.auth.callback.CallbackHandler |
callbackHandler |
private javax.security.auth.Subject |
clientSubject |
private boolean |
enabled |
private static org.infinispan.client.hotrod.logging.Log |
log |
private java.lang.String |
saslMechanism |
private java.util.Map<java.lang.String,java.lang.String> |
saslProperties |
private java.lang.String |
serverName |
Constructor and Description |
---|
AuthenticationConfigurationBuilder(SecurityConfigurationBuilder builder) |
Modifier and Type | Method and Description |
---|---|
AuthenticationConfigurationBuilder |
callbackHandler(javax.security.auth.callback.CallbackHandler callbackHandler)
Specifies a
CallbackHandler to be used during the authentication handshake. |
AuthenticationConfigurationBuilder |
clientSubject(javax.security.auth.Subject clientSubject)
Sets the client subject, necessary for those SASL mechanisms which require it to access client credentials (i.e.
|
AuthenticationConfiguration |
create()
Create the configuration bean
|
AuthenticationConfigurationBuilder |
disable()
Disables authentication
|
AuthenticationConfigurationBuilder |
enable()
Enables authentication
|
AuthenticationConfigurationBuilder |
enabled(boolean enabled)
Configures whether authentication should be enabled or not
|
Builder<?> |
read(AuthenticationConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
AuthenticationConfigurationBuilder |
saslMechanism(java.lang.String saslMechanism)
Selects the SASL mechanism to use for the connection to the server
|
AuthenticationConfigurationBuilder |
saslProperties(java.util.Map<java.lang.String,java.lang.String> saslProperties)
Sets the SASL properties
|
AuthenticationConfigurationBuilder |
saslQop(SaslQop... qop)
Sets the SASL QOP property.
|
AuthenticationConfigurationBuilder |
saslStrength(SaslStrength... strength)
Sets the SASL strength property.
|
AuthenticationConfigurationBuilder |
serverName(java.lang.String serverName)
Sets the name of the server as expected by the SASL protocol
|
void |
validate()
Validate the data in this builder before building the configuration bean
|
authentication, ssl
addServer, addServers, asyncExecutorFactory, balancingStrategy, balancingStrategy, build, classLoader, connectionPool, connectionTimeout, consistentHashImpl, consistentHashImpl, forceReturnValues, keySizeEstimate, marshaller, marshaller, marshaller, maxRetries, pingOnStartup, protocolVersion, security, socketTimeout, tcpKeepAlive, tcpNoDelay, transportFactory, transportFactory, valueSizeEstimate, withProperties
private static final org.infinispan.client.hotrod.logging.Log log
private javax.security.auth.callback.CallbackHandler callbackHandler
private boolean enabled
private java.lang.String serverName
private java.util.Map<java.lang.String,java.lang.String> saslProperties
private java.lang.String saslMechanism
private javax.security.auth.Subject clientSubject
public AuthenticationConfigurationBuilder(SecurityConfigurationBuilder builder)
public AuthenticationConfigurationBuilder callbackHandler(javax.security.auth.callback.CallbackHandler callbackHandler)
CallbackHandler
to be used during the authentication handshake.
The Callback
s that need to be handled are specific to the chosen SASL mechanism.public AuthenticationConfigurationBuilder enabled(boolean enabled)
public AuthenticationConfigurationBuilder enable()
public AuthenticationConfigurationBuilder disable()
public AuthenticationConfigurationBuilder saslMechanism(java.lang.String saslMechanism)
public AuthenticationConfigurationBuilder saslProperties(java.util.Map<java.lang.String,java.lang.String> saslProperties)
public AuthenticationConfigurationBuilder saslQop(SaslQop... qop)
public AuthenticationConfigurationBuilder saslStrength(SaslStrength... strength)
public AuthenticationConfigurationBuilder serverName(java.lang.String serverName)
public AuthenticationConfigurationBuilder clientSubject(javax.security.auth.Subject clientSubject)
public AuthenticationConfiguration create()
Builder
create
in interface Builder<AuthenticationConfiguration>
public Builder<?> read(AuthenticationConfiguration template)
Builder
read
in interface Builder<AuthenticationConfiguration>
template
- the configuration from which to "clone" this config if needed.public void validate()
Builder
validate
in interface Builder<AuthenticationConfiguration>