Class AuthenticationConfigurationBuilder
- java.lang.Object
-
- org.infinispan.server.core.configuration.AbstractProtocolServerConfigurationChildBuilder<RestServerConfiguration,AuthenticationConfigurationBuilder>
-
- org.infinispan.rest.configuration.AuthenticationConfigurationBuilder
-
- All Implemented Interfaces:
Builder<AuthenticationConfiguration>
,Self<AuthenticationConfigurationBuilder>
,ProtocolServerConfigurationChildBuilder<RestServerConfiguration,AuthenticationConfigurationBuilder>
public class AuthenticationConfigurationBuilder extends AbstractProtocolServerConfigurationChildBuilder<RestServerConfiguration,AuthenticationConfigurationBuilder> implements Builder<AuthenticationConfiguration>
AuthenticationConfigurationBuilder.- Since:
- 10.0
- Author:
- Tristan Tarrant
-
-
Field Summary
-
Fields inherited from class org.infinispan.server.core.configuration.AbstractProtocolServerConfigurationChildBuilder
builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationConfigurationBuilder
addMechanisms(String... mechanisms)
AuthenticationConfigurationBuilder
authenticator(Authenticator authenticator)
AuthenticationConfiguration
create()
Create the configuration beanAuthenticationConfigurationBuilder
disable()
AuthenticationConfigurationBuilder
enable()
AuthenticationConfigurationBuilder
enabled(boolean enabled)
Builder<?>
read(AuthenticationConfiguration template)
Reads the configuration from an already created configuration bean into this builder.AuthenticationConfigurationBuilder
securityRealm(String realm)
AuthenticationConfigurationBuilder
self()
void
validate()
Validate the data in this builder before building the configuration bean-
Methods inherited from class org.infinispan.server.core.configuration.AbstractProtocolServerConfigurationChildBuilder
adminOperationsHandler, build, defaultCacheName, host, idleTimeout, ioThreads, name, port, recvBufSize, sendBufSize, socketBinding, ssl, startTransport, tcpKeepAlive, tcpNoDelay, workerThreads
-
-
-
-
Method Detail
-
enable
public AuthenticationConfigurationBuilder enable()
-
disable
public AuthenticationConfigurationBuilder disable()
-
enabled
public AuthenticationConfigurationBuilder enabled(boolean enabled)
-
securityRealm
public AuthenticationConfigurationBuilder securityRealm(String realm)
-
authenticator
public AuthenticationConfigurationBuilder authenticator(Authenticator authenticator)
-
addMechanisms
public AuthenticationConfigurationBuilder addMechanisms(String... mechanisms)
-
validate
public void validate()
Description copied from interface:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<AuthenticationConfiguration>
-
create
public AuthenticationConfiguration create()
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<AuthenticationConfiguration>
- Returns:
-
read
public Builder<?> read(AuthenticationConfiguration template)
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceBuilder<AuthenticationConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.
-
self
public AuthenticationConfigurationBuilder self()
- Specified by:
self
in interfaceSelf<AuthenticationConfigurationBuilder>
-
-