public class IdentityStoresConfigurationBuilder extends AbstractIdentityConfigurationChildBuilder<List<? extends IdentityStoreConfiguration>> implements IdentityStoreConfigurationChildBuilder
A class used to build the configuration for identity stores. Only a single configuration can exists for a given identity store.
Modifier | Constructor and Description |
---|---|
protected |
IdentityStoresConfigurationBuilder(NamedIdentityConfigurationBuilder builder) |
Modifier and Type | Method and Description |
---|---|
<T extends IdentityStoreConfigurationBuilder<?,?>> |
add(Class<? extends IdentityStoreConfiguration> identityStoreConfiguration,
Class<T> builder)
Adds support for a custom
IdentityStore . |
protected List<? extends IdentityStoreConfiguration> |
create()
Creates a new configuration.
|
FileStoreConfigurationBuilder |
file()
Configures a file-based identity store for this configuration.
|
protected Set<Class<? extends Relationship>> |
getGlobalRelationships() |
List<IdentityStoreConfigurationBuilder<?,?>> |
getIdentityStoresConfigurationBuilder() |
protected Set<Class<? extends Relationship>> |
getSelfRelationships() |
JDBCStoreConfigurationBuilder |
jdbc()
Configures a JDBC based Identity Store
|
JPAStoreConfigurationBuilder |
jpa()
Configures a jpa-based identity store for this configuration.
|
LDAPStoreConfigurationBuilder |
ldap()
Configures a ldap-based identity store for this configuration.
|
protected IdentityStoresConfigurationBuilder |
readFrom(List<? extends IdentityStoreConfiguration> fromConfiguration)
Reads a pre-created configuration.
|
TokenStoreConfigurationBuilder |
token()
Configures a token-based identity store for this configuration.
|
protected void |
validate()
Validates the internal state.
|
build, buildAll, named
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build, buildAll, named
protected IdentityStoresConfigurationBuilder(NamedIdentityConfigurationBuilder builder)
public FileStoreConfigurationBuilder file()
Configures a file-based identity store for this configuration.
file
in interface IdentityStoreConfigurationChildBuilder
public JDBCStoreConfigurationBuilder jdbc()
public JPAStoreConfigurationBuilder jpa()
Configures a jpa-based identity store for this configuration.
jpa
in interface IdentityStoreConfigurationChildBuilder
public LDAPStoreConfigurationBuilder ldap()
Configures a ldap-based identity store for this configuration.
ldap
in interface IdentityStoreConfigurationChildBuilder
public TokenStoreConfigurationBuilder token()
Configures a token-based identity store for this configuration.
This identity store does not persist data, but only extracts information from tokens in order to perform some basic identity management operations. In this case, a token acts as a temporary identity store from where all identity data will be retrieved.
Usually, tokens are a self-contained repository for the identities or claims for a particular subject.
token
in interface IdentityStoreConfigurationChildBuilder
@MethodConfigID(name="customIdentityStore") public <T extends IdentityStoreConfigurationBuilder<?,?>> T add(@ParameterConfigID(name="identityStoreConfigurationClass") Class<? extends IdentityStoreConfiguration> identityStoreConfiguration, @ParameterConfigID(name="builderClass") Class<T> builder)
Adds support for a custom IdentityStore
.
add
in interface IdentityStoreConfigurationChildBuilder
identityStoreConfiguration
- builder
- public List<IdentityStoreConfigurationBuilder<?,?>> getIdentityStoresConfigurationBuilder()
protected List<? extends IdentityStoreConfiguration> create()
Builder
Creates a new configuration.
create
in class Builder<List<? extends IdentityStoreConfiguration>>
protected void validate()
Builder
Validates the internal state.
validate
in class Builder<List<? extends IdentityStoreConfiguration>>
protected IdentityStoresConfigurationBuilder readFrom(List<? extends IdentityStoreConfiguration> fromConfiguration)
Builder
Reads a pre-created configuration.
readFrom
in class Builder<List<? extends IdentityStoreConfiguration>>
protected Set<Class<? extends Relationship>> getGlobalRelationships()
protected Set<Class<? extends Relationship>> getSelfRelationships()
Copyright © 2018 JBoss by Red Hat. All rights reserved.