Package org.hdiv.config.annotation.builders

Examples of org.hdiv.config.annotation.builders.SecurityConfigBuilder


public abstract class HdivWebSecurityConfigurationSupport {

  @Bean
  public HDIVConfig hdivConfig() {

    SecurityConfigBuilder securityConfigBuilder = this.securityConfigBuilder();
    this.configure(securityConfigBuilder);

    HDIVConfig config = securityConfigBuilder.build();
    config.setValidations(securityValidations());

    // User configured exclusions
    ExclusionRegistry exclusionRegistry = new ExclusionRegistry(patternMatcherFactory());
    this.addExclusions(exclusionRegistry);
View Full Code Here


    return config;
  }

  @Bean
  protected SecurityConfigBuilder securityConfigBuilder() {
    SecurityConfigBuilder builder = new SecurityConfigBuilder(patternMatcherFactory());
    return builder;
  }
View Full Code Here

  @Bean
  public IKeyFactory keyFactory() {
    KeyFactory keyFactory = new KeyFactory();

    SecurityConfigBuilder builder = this.securityConfigBuilder();
    CipherConfigure config = builder.getCipherConfigure();
    if (config.getAlgorithm() != null) {
      keyFactory.setAlgorithm(config.getAlgorithm());
    }
    if (config.getKeySize() > 0) {
      keyFactory.setKeySize(config.getKeySize());
View Full Code Here

  @Bean
  @Scope(BeanDefinition.SCOPE_PROTOTYPE)
  public IStateCache stateCache() {

    SecurityConfigBuilder builder = this.securityConfigBuilder();
    int maxPagesPerSession = builder.getMaxPagesPerSession();

    StateCache stateCache = new StateCache();
    if (maxPagesPerSession > 0) {
      stateCache.setMaxSize(maxPagesPerSession);
    }
View Full Code Here

  @Bean
  @Scope(BeanDefinition.SCOPE_PROTOTYPE)
  public ICipherHTTP cipherHTTP() {

    SecurityConfigBuilder builder = this.securityConfigBuilder();
    CipherConfigure config = builder.getCipherConfigure();

    CipherHTTP cipherHTTP = new CipherHTTP();
    if (config.getProvider() != null) {
      cipherHTTP.setProvider(config.getProvider());
    }
View Full Code Here

TOP

Related Classes of org.hdiv.config.annotation.builders.SecurityConfigBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.