public class IdentityBeanConfigurationBuilder extends AbstractSecurityConfigurationBuilder<IdentityBeanConfiguration>
A configuration builder with covenience methods to configure the behavior of the Identity
bean.
Constructor and Description |
---|
IdentityBeanConfigurationBuilder(SecurityConfigurationBuilder builder) |
Modifier and Type | Method and Description |
---|---|
protected IdentityBeanConfiguration |
create()
Creates a new configuration.
|
protected Builder<IdentityBeanConfiguration> |
readFrom(IdentityBeanConfiguration fromConfiguration)
Reads a pre-created configuration.
|
IdentityBeanConfigurationBuilder |
scope(Class<? extends Annotation> scope)
Sepcifies the scope of the
Identity bean. |
IdentityBeanConfigurationBuilder |
stateless()
Enables the stateless mode of the
Identity bean. |
protected void |
validate()
Validates the internal state.
|
build, http, identity, idmConfig
public IdentityBeanConfigurationBuilder(SecurityConfigurationBuilder builder)
public IdentityBeanConfigurationBuilder stateless()
Enables the stateless mode of the Identity
bean. In this case, the bean will be
RequestScoped
.
Default is false.
public IdentityBeanConfigurationBuilder scope(Class<? extends Annotation> scope)
Sepcifies the scope of the Identity
bean.
scope
- The scope of the identity bean. It can not be null.protected IdentityBeanConfiguration create() throws SecurityConfigurationException
Builder
Creates a new configuration.
create
in class AbstractSecurityConfigurationBuilder<IdentityBeanConfiguration>
SecurityConfigurationException
- if any error occurs or for any invalid configurationprotected void validate() throws SecurityConfigurationException
Builder
Validates the internal state.
validate
in class AbstractSecurityConfigurationBuilder<IdentityBeanConfiguration>
SecurityConfigurationException
- if any error occurs or for any invalid configurationprotected Builder<IdentityBeanConfiguration> readFrom(IdentityBeanConfiguration fromConfiguration) throws SecurityConfigurationException
Builder
Reads a pre-created configuration.
readFrom
in class AbstractSecurityConfigurationBuilder<IdentityBeanConfiguration>
SecurityConfigurationException
- if any error occurs or for any invalid configurationCopyright © 2018 JBoss by Red Hat. All rights reserved.