Class PasswordHashCreatorBCrypt

    • Constructor Detail

      • PasswordHashCreatorBCrypt

        public PasswordHashCreatorBCrypt()
    • Method Detail

      • requiresSalt

        public boolean requiresSalt()
        Returns:
        true if this hash creator requires a salt, false if not.
      • createPasswordHash

        @Nonnull
        public String createPasswordHash​(@Nonnull
                                         IPasswordSalt aSalt,
                                         @Nonnull
                                         String sPlainTextPassword)
        The method to create a message digest hash from a password. The password salt must be of type PasswordSaltBCrypt.
        Parameters:
        aSalt - Optional salt to be used. This parameter is only null for backwards compatibility reasons.
        sPlainTextPassword - Plain text password. May not be null.
        Returns:
        The String representation of the password hash. Must be valid to encode in UTF-8.