Class PasswordGenerator


  • public class PasswordGenerator
    extends java.lang.Object
    This class contains static methods to generate different kinds of password.
    Since:
    jcms-4.0
    Author:
    Olivier Dedieu
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String generateBasicPassword​(int length)
      Generates a basic password (consonnants / voyels)
      static java.lang.String generatePronounceablePassword​(int length)
      Generates pronounceable passwords of specified length.
      static java.lang.String generateRandomPassword​(int length)
      Generates a pure random password
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PasswordGenerator

        public PasswordGenerator()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
      • generateBasicPassword

        public static java.lang.String generateBasicPassword​(int length)
        Generates a basic password (consonnants / voyels)
        Parameters:
        length - the length of the password to be generated
        Returns:
        the generated password
        Since:
        jcms-4.0
      • generateRandomPassword

        public static java.lang.String generateRandomPassword​(int length)
        Generates a pure random password
        Parameters:
        length - the length of the password to be generated
        Returns:
        the generated password
        Since:
        jcms-4.0
      • generatePronounceablePassword

        public static java.lang.String generatePronounceablePassword​(int length)
        Generates pronounceable passwords of specified length. See www.multicians.org/thvv/gpw.html for history and info. Tom Van Vleck
        Parameters:
        length - the length of the password to be generated
        Returns:
        the generated password
        Since:
        jcms-4.0