Class AuthenticationConfigurationBuilder
java.lang.Object
org.infinispan.hotrod.configuration.AbstractConfigurationChildBuilder
org.infinispan.hotrod.configuration.AuthenticationConfigurationBuilder
- All Implemented Interfaces:
org.infinispan.commons.configuration.Builder<AuthenticationConfiguration>,ConfigurationChildBuilder
public class AuthenticationConfigurationBuilder
extends AbstractConfigurationChildBuilder
implements org.infinispan.commons.configuration.Builder<AuthenticationConfiguration>
AuthenticationConfigurationBuilder.
- Since:
- 14.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.commons.configuration.attributes.AttributeSetcallbackHandler(CallbackHandler callbackHandler) Specifies aCallbackHandlerto be used during the authentication handshake.clientSubject(Subject clientSubject) Sets the client subject, necessary for those SASL mechanisms which require it to access client credentials (i.e.create()disable()Disables authenticationenable()Enables authenticationenabled(boolean enabled) Configures whether authentication should be enabled or notpassword(char[] password) Specifies the password to be used for authentication.Specifies the password to be used for authentication.read(AuthenticationConfiguration template) Specifies the realm to be used for authentication.saslMechanism(String saslMechanism) Selects the SASL mechanism to use for the connection to the server.saslProperties(Map<String, String> saslProperties) Sets the SASL properties.Sets the SASL QOP property.saslStrength(SaslStrength... strength) Sets the SASL strength property.serverName(String serverName) Sets the name of the server as expected by the SASL protocol Setting this property also implicitly enables authentication (seeenable()This defaults to "infinispan"Specifies the username to be used for authentication.voidvalidate()withProperties(Properties properties) Configures this builder using the specified properties.Methods inherited from class org.infinispan.hotrod.configuration.AbstractConfigurationChildBuilder
addCluster, addContextInitializer, addContextInitializer, addContextInitializers, addJavaSerialAllowList, addServer, addServers, asyncExecutorFactory, balancingStrategy, balancingStrategy, balancingStrategy, batchSize, build, clientIntelligence, connectionPool, connectionTimeout, consistentHashImpl, consistentHashImpl, forceReturnValues, marshaller, marshaller, marshaller, maxRetries, remoteCache, security, socketTimeout, statistics, tcpKeepAlive, tcpNoDelay, transactionTimeout, transportFactory, uri, uri, version
-
Field Details
-
DEFAULT_REALM
- See Also:
-
-
Constructor Details
-
AuthenticationConfigurationBuilder
-
-
Method Details
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()- Specified by:
attributesin interfaceorg.infinispan.commons.configuration.Builder<AuthenticationConfiguration>
-
callbackHandler
Specifies aCallbackHandlerto be used during the authentication handshake. TheCallbacks that need to be handled are specific to the chosen SASL mechanism. -
enabled
Configures whether authentication should be enabled or not -
enable
Enables authentication -
disable
Disables authentication -
saslMechanism
Selects the SASL mechanism to use for the connection to the server. Setting this property also implicitly enables authentication (seeenable() -
saslProperties
Sets the SASL properties. Setting this property also implicitly enables authentication (seeenable() -
saslQop
Sets the SASL QOP property. If multiple values are specified they will determine preference order. Setting this property also implicitly enables authentication (seeenable() -
saslStrength
Sets the SASL strength property. If multiple values are specified they will determine preference order. Setting this property also implicitly enables authentication (seeenable() -
serverName
Sets the name of the server as expected by the SASL protocol Setting this property also implicitly enables authentication (seeenable()This defaults to "infinispan" -
clientSubject
Sets the client subject, necessary for those SASL mechanisms which require it to access client credentials (i.e. GSSAPI). Setting this property also implicitly enables authentication (seeenable() -
username
Specifies the username to be used for authentication. This will use a simple CallbackHandler. This is mutually exclusive with explicitly providing the CallbackHandler. Setting this property also implicitly enables authentication (seeenable() -
password
Specifies the password to be used for authentication. A username is also required. Setting this property also implicitly enables authentication (seeenable() -
password
Specifies the password to be used for authentication. A username is also required. Setting this property also implicitly enables authentication (seeenable() -
realm
Specifies the realm to be used for authentication. Username and password also need to be supplied. If none is specified, this defaults toDEFAULT_REALM. Setting this property also implicitly enables authentication (seeenable() -
token
-
create
- Specified by:
createin interfaceorg.infinispan.commons.configuration.Builder<AuthenticationConfiguration>
-
read
- Specified by:
readin interfaceorg.infinispan.commons.configuration.Builder<AuthenticationConfiguration>
-
validate
public void validate()- Specified by:
validatein interfaceorg.infinispan.commons.configuration.Builder<AuthenticationConfiguration>
-
withProperties
Description copied from interface:ConfigurationChildBuilderConfigures this builder using the specified properties. SeeHotRodConfigurationBuilderfor a list.- Specified by:
withPropertiesin interfaceConfigurationChildBuilder- Overrides:
withPropertiesin classAbstractConfigurationChildBuilder
-