@Override protected JPAStoreConfigurationBuilder readFrom(JPAIdentityStoreConfiguration configuration) { super.readFrom(configuration); for (Class<?> entityType: configuration.getEntityTypes()) { mappedEntity(entityType); } return this; }
@Override protected FileStoreConfigurationBuilder readFrom(FileIdentityStoreConfiguration configuration) { super.readFrom(configuration); this.workingDirectory = configuration.getWorkingDir(); this.preserveState = !configuration.isAlwaysCreateFiles(); this.asyncWrite = configuration.isAsyncWrite(); this.asyncWriteThreadPool = configuration.getAsyncThreadPool(); return this; } }
@Override protected void validate() { super.validate(); if (this.asyncWriteThreadPool <= 0) { throw new SecurityConfigurationException("The thread pool size must be greater than zero."); } }
IdentityConfigurationBuilder builder = new IdentityConfigurationBuilder(); builder .named("default") .stores() .jpa() .supportType(CustomUser.class) .mappedEntity( ...
@Override protected JPAIdentityStoreConfiguration create() { return new JPAIdentityStoreConfiguration( this.mappedEntities, getSupportedTypes(), getUnsupportedTypes(), getContextInitializers(), getCredentialHandlerProperties(), getCredentialHandlers(), isSupportAttributes(), isSupportCredentials(), isSupportPermissions()); }
@Override protected TokenStoreConfiguration create() throws SecurityConfigurationException { return new TokenStoreConfiguration( this.tokenConsumer, getSupportedTypes(), getUnsupportedTypes(), getContextInitializers(), getCredentialHandlerProperties(), getCredentialHandlers(), isSupportAttributes(), isSupportCredentials(), isSupportPermissions() ); }
/** * <p>Convenience methods for Identity Management Configuration.</p> * * @return The builder responsible to provide all identity management configuration options. */ @Override public IdentityConfigurationBuilder idmConfig() { if (this.identityConfigurationBuilder == null) { this.identityConfigurationBuilder = new IdentityConfigurationBuilder(); } return this.identityConfigurationBuilder; }
public boolean supportsPartition() { for (IdentityStoreConfiguration storeConfiguration : getStoreConfiguration()) { if (storeConfiguration.supportsPartition()) { return true; } } return false; }
@Override protected Builder<IdentityConfiguration> readFrom(IdentityConfiguration configuration) { this.identityStoresConfigurationBuilder.readFrom(configuration.getStoreConfiguration()); return this; }
/** * <p>Maps a specific {@link AttributedType}.</p> * * @param attributedType * * @return */ public LDAPMappingConfigurationBuilder mapping(Class<? extends AttributedType> attributedType) { return this.ldapStoreBuilder.mapping(attributedType); }
/** * Configures a JDBC based Identity Store * @return */ public JDBCStoreConfigurationBuilder jdbc(){ return forIdentityStoreConfig(JDBCIdentityStoreConfiguration.class, true); }
@Override protected void validate() { super.validate(); } }
@Override protected JPAIdentityStoreConfiguration create() { return new JPAIdentityStoreConfiguration( this.mappedEntities, getSupportedTypes(), getUnsupportedTypes(), getContextInitializers(), getCredentialHandlerProperties(), getCredentialHandlers(), isSupportAttributes(), isSupportCredentials(), isSupportPermissions()); }
@Override protected TokenStoreConfiguration create() throws SecurityConfigurationException { return new TokenStoreConfiguration( this.tokenConsumer, getSupportedTypes(), getUnsupportedTypes(), getContextInitializers(), getCredentialHandlerProperties(), getCredentialHandlers(), isSupportAttributes(), isSupportCredentials(), isSupportPermissions() ); }
@Override protected FileStoreConfigurationBuilder readFrom(FileIdentityStoreConfiguration configuration) { super.readFrom(configuration); this.workingDirectory = configuration.getWorkingDir(); this.preserveState = !configuration.isAlwaysCreateFiles(); this.asyncWrite = configuration.isAsyncWrite(); this.asyncWriteThreadPool = configuration.getAsyncThreadPool(); return this; } }
/** * <p>Convenience methods for Identity Management Configuration.</p> * * @return The builder responsible to provide all identity management configuration options. */ @Override public IdentityConfigurationBuilder idmConfig() { if (this.identityConfigurationBuilder == null) { this.identityConfigurationBuilder = new IdentityConfigurationBuilder(); } return this.identityConfigurationBuilder; }
@Override protected JPAStoreConfigurationBuilder readFrom(JPAIdentityStoreConfiguration configuration) { super.readFrom(configuration); for (Class<?> entityType: configuration.getEntityTypes()) { mappedEntity(entityType); } return this; }
@Override protected void validate() { super.validate(); if (this.asyncWriteThreadPool <= 0) { throw new SecurityConfigurationException("The thread pool size must be greater than zero."); } }
public boolean supportsPartition() { for (IdentityStoreConfiguration storeConfiguration : getStoreConfiguration()) { if (storeConfiguration.supportsPartition()) { return true; } } return false; }
@Override protected Builder<IdentityConfiguration> readFrom(IdentityConfiguration configuration) { this.identityStoresConfigurationBuilder.readFrom(configuration.getStoreConfiguration()); return this; }