Package org.hdiv.cipher

Examples of org.hdiv.cipher.IKeyFactory


   *            http session
   */
  protected void initStrategies(ApplicationContext context, HttpSession httpSession) {

    if (this.config.getStrategy().equals(Strategy.CIPHER)) {
      IKeyFactory keyFactory = context.getBean(IKeyFactory.class);
      // creating encryption key
      Key key = keyFactory.generateKey();
      httpSession.setAttribute(Constants.KEY_NAME, key);

    }
  }
View Full Code Here

TOP

Related Classes of org.hdiv.cipher.IKeyFactory

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.