public class AuthenticationConfigurationBuilder extends AbstractSecurityConfigurationChildBuilder implements org.infinispan.commons.configuration.Builder<AuthenticationConfiguration>
attributes
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() |
AuthenticationConfigurationBuilder |
disable()
Disables authentication
|
AuthenticationConfigurationBuilder |
enable()
Enables authentication
|
AuthenticationConfigurationBuilder |
enabled(boolean enabled)
Configures whether authentication should be enabled or not
|
protected org.infinispan.configuration.cache.ConfigurationBuilder |
getBuilder() |
AuthenticationConfigurationBuilder |
password(char[] password)
Specifies the password to be used for authentication.
|
AuthenticationConfigurationBuilder |
password(String password)
Specifies the password to be used for authentication.
|
org.infinispan.commons.configuration.Builder<?> |
read(AuthenticationConfiguration template) |
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 |
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() |
authentication, ssl
addServer, asyncExecutorFactory, balancingStrategy, connectionPool, connectionTimeout, forceReturnValues, getRemoteStoreBuilder, hotRodWrapping, keySizeEstimate, marshaller, marshaller, protocolVersion, protocolVersion, rawValues, remoteCacheName, remoteSecurity, socketTimeout, tcpNoDelay, transportFactory, transportFactory, validate, valueSizeEstimate
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, shared, singleton, transactional, withProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, shared, singleton, transactional, withProperties
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, encoding, eviction, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, persistence, security, simpleCache, simpleCache, sites, storeAsBinary, template, transaction, unsafe, versioning
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 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()
create
in interface org.infinispan.commons.configuration.Builder<AuthenticationConfiguration>
public org.infinispan.commons.configuration.Builder<?> read(AuthenticationConfiguration template)
read
in interface org.infinispan.commons.configuration.Builder<AuthenticationConfiguration>
public void validate()
validate
in interface org.infinispan.commons.configuration.Builder<AuthenticationConfiguration>
protected org.infinispan.configuration.cache.ConfigurationBuilder getBuilder()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.