Class PasswordHash

java.lang.Object
com.revetsec.password.PasswordHash

@Immutable public final class PasswordHash extends Object
A generated password verifier. Treat its stored form as sensitive credential data even though it contains no plaintext password. Logging and toString() redact it.
Since:
1.0.0
  • Method Details

    • getStoredForm

      Returns the complete durable representation, including any non-secret pepper key ID. Store it atomically with the account's credential version. Access to this value is deliberate.
      Returns:
      durable stored form
      Since:
      1.0.0
    • toString

      Overrides:
      toString in class Object
      Returns:
      a fixed redacted description
      Since:
      1.0.0