Package org.springframework.security.crypto.keygen

Examples of org.springframework.security.crypto.keygen.StringKeyGenerator.generateKey()


  /**
   * Get initial password - a randomly generated string.
   */
  String getInitPassword() {
    StringKeyGenerator generator = KeyGenerators.string();
    return generator.generateKey().substring(0, 8);
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.