Interface StringDigester

All Known Implementing Classes:
PooledStringDigester, StandardStringDigester

public interface StringDigester

Common interface for all digesters which receive a String message and return a String digest.

For a default implementation, see StandardStringDigester.

Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    digest(String message)
    Create a digest of the input message.
    boolean
    matches(String message, String digest)
    Check whether a message matches a digest, managing aspects like salt, hashing iterations, etc.
  • Method Details

    • digest

      String digest(String message)

      Create a digest of the input message.

      Parameters:
      message - the message to be digested
      Returns:
      the digest
    • matches

      boolean matches(String message, String digest)

      Check whether a message matches a digest, managing aspects like salt, hashing iterations, etc. (if applicable).

      Parameters:
      message - the message to check
      digest - the digest to check
      Returns:
      TRUE if the message matches the digest, FALSE if not.