Interface IPasswordHashCreator

    • Method Detail

      • getAlgorithmName

        @Nonnull
        @Nonempty
        String getAlgorithmName()
        Returns:
        The name of the algorithm used in this creator. May neither be null nor empty. This is a self-chosen name and not related to a JDK internal name.
      • requiresSalt

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

        @Nonnull
        String createPasswordHash​(IPasswordSalt aSalt,
                                  @Nonnull
                                  String sPlainTextPassword)
        The method to create a message digest hash from a password.
        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.