Class AuthenticationConfigurationBuilder
java.lang.Object
org.infinispan.client.rest.configuration.AbstractConfigurationChildBuilder
org.infinispan.client.rest.configuration.AbstractSecurityConfigurationChildBuilder
org.infinispan.client.rest.configuration.AuthenticationConfigurationBuilder
- All Implemented Interfaces:
RestClientConfigurationChildBuilder,org.infinispan.commons.configuration.Builder<AuthenticationConfiguration>
public class AuthenticationConfigurationBuilder
extends AbstractSecurityConfigurationChildBuilder
implements org.infinispan.commons.configuration.Builder<AuthenticationConfiguration>
AuthenticationConfigurationBuilder.
- Since:
- 10.0
- Author:
- Tristan Tarrant
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.commons.configuration.attributes.AttributeSetclientSubject(Subject clientSubject) Sets the client subject, necessary for those 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 notSelects the authentication mechanism to use for the connection to the server.password(char[] password) Specifies the password to be used for authentication.Specifies the password to be used for authentication.org.infinispan.commons.configuration.Builder<?> read(AuthenticationConfiguration template, org.infinispan.commons.configuration.Combine combine) Specifies the realm to be used for authentication.Specifies the username to be used for authentication.withProperties(Properties properties) Configures this builder using the specified properties.Methods inherited from class org.infinispan.client.rest.configuration.AbstractSecurityConfigurationChildBuilder
authentication, sslMethods inherited from class org.infinispan.client.rest.configuration.AbstractConfigurationChildBuilder
addServer, addServers, build, connectionTimeout, followRedirects, priorKnowledge, protocol, security, socketTimeout, tcpKeepAlive, tcpNoDelayMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commons.configuration.Builder
read, reset, validate
-
Constructor Details
-
AuthenticationConfigurationBuilder
-
-
Method Details
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()- Specified by:
attributesin interfaceorg.infinispan.commons.configuration.Builder<AuthenticationConfiguration>
-
enabled
Configures whether authentication should be enabled or not -
enable
Enables authentication -
disable
Disables authentication -
mechanism
Selects the authentication mechanism to use for the connection to the server. Setting this property also implicitly enables authentication (seeenable() -
clientSubject
Sets the client subject, necessary for those mechanisms which require it to access client credentials (i.e. SPNEGO). 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 to 'ApplicationRealm'. Setting this property also implicitly enables authentication (seeenable() -
create
- Specified by:
createin interfaceorg.infinispan.commons.configuration.Builder<AuthenticationConfiguration>
-
read
public org.infinispan.commons.configuration.Builder<?> read(AuthenticationConfiguration template, org.infinispan.commons.configuration.Combine combine) - Specified by:
readin interfaceorg.infinispan.commons.configuration.Builder<AuthenticationConfiguration>
-
withProperties
Description copied from interface:RestClientConfigurationChildBuilderConfigures this builder using the specified properties. SeeRestClientConfigurationBuilderfor a list.- Specified by:
withPropertiesin interfaceRestClientConfigurationChildBuilder- Overrides:
withPropertiesin classAbstractConfigurationChildBuilder
-