public class AuthenticationConfigurationBuilder extends AbstractSecurityConfigurationChildBuilder implements Builder<AuthenticationConfiguration>
Constructor and Description |
---|
AuthenticationConfigurationBuilder(SecurityConfigurationBuilder builder) |
Modifier and Type | Method and Description |
---|---|
AuthenticationConfigurationBuilder |
callbackHandler(CallbackHandler callbackHandler)
Specifies a
CallbackHandler to be used during the authentication handshake. |
AuthenticationConfigurationBuilder |
clientSubject(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
|
AuthenticationConfigurationBuilder |
password(char[] password)
Specifies the password to be used for authentication.
|
AuthenticationConfigurationBuilder |
password(String password)
Specifies the password to be used for authentication.
|
Builder<?> |
read(AuthenticationConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
AuthenticationConfigurationBuilder |
realm(String realm)
Specifies the realm to be used for authentication.
|
AuthenticationConfigurationBuilder |
saslMechanism(String saslMechanism)
Selects the SASL mechanism to use for the connection to the server
|
AuthenticationConfigurationBuilder |
saslProperties(Map<String,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(String serverName)
Sets the name of the server as expected by the SASL protocol
|
AuthenticationConfigurationBuilder |
username(String username)
Specifies the username to be used for authentication.
|
void |
validate()
Validate the data in this builder before building the configuration bean
|
ConfigurationBuilder |
withProperties(Properties properties)
Configures this builder using the specified properties
|
authentication, ssl
addCluster, addJavaSerialWhiteList, addServer, addServers, asyncExecutorFactory, balancingStrategy, balancingStrategy, balancingStrategy, batchSize, build, classLoader, clientIntelligence, connectionPool, connectionTimeout, consistentHashImpl, consistentHashImpl, forceReturnValues, keySizeEstimate, marshaller, marshaller, marshaller, maxRetries, protocolVersion, security, socketTimeout, tcpKeepAlive, tcpNoDelay, transportFactory, transportFactory, valueSizeEstimate, version
public AuthenticationConfigurationBuilder(SecurityConfigurationBuilder builder)
public AuthenticationConfigurationBuilder callbackHandler(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(String saslMechanism)
public AuthenticationConfigurationBuilder saslProperties(Map<String,String> saslProperties)
public AuthenticationConfigurationBuilder saslQop(SaslQop... qop)
public AuthenticationConfigurationBuilder saslStrength(SaslStrength... strength)
public AuthenticationConfigurationBuilder serverName(String serverName)
public AuthenticationConfigurationBuilder clientSubject(Subject clientSubject)
public AuthenticationConfigurationBuilder username(String username)
public AuthenticationConfigurationBuilder password(String password)
public AuthenticationConfigurationBuilder password(char[] password)
public AuthenticationConfigurationBuilder realm(String realm)
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>
public ConfigurationBuilder withProperties(Properties properties)
ConfigurationChildBuilder
withProperties
in interface ConfigurationChildBuilder
withProperties
in class AbstractConfigurationChildBuilder
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.