Package org.hdiv.cipher

Examples of org.hdiv.cipher.KeyFactory


    return pageIdGenerator;
  }

  @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());
    }
    if (config.getPrngAlgorithm() != null) {
      keyFactory.setPrngAlgorithm(config.getPrngAlgorithm());
    }
    if (config.getProvider() != null) {
      keyFactory.setProvider(config.getProvider());
    }
    return keyFactory;
  }
View Full Code Here

TOP

Related Classes of org.hdiv.cipher.KeyFactory

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.