Class ShannonEntropyFactory


  • public final class ShannonEntropyFactory
    extends Object
    Factory for creating ShannonEntropy from password rules and password data.
    Author:
    Middleware Services
    • Method Detail

      • createEntropy

        public static ShannonEntropy createEntropy​(List<? extends Rule> passwordRules,
                                                   PasswordData passwordData)
        Creates a new shannon entropy.
        Parameters:
        passwordRules - to aid in entropy calculation
        passwordData - to aid in entropy calculation
        Returns:
        shannon entropy
      • createEntropy

        public static ShannonEntropy createEntropy​(boolean dictionaryCheck,
                                                   PasswordData passwordData)
        Creates a new shannon entropy.
        Parameters:
        dictionaryCheck - whether or not a common passwords dictionary is checked against the password
        passwordData - to aid in entropy calculation
        Returns:
        shannon entropy