Class DigestPasswordSpec

java.lang.Object
org.wildfly.security.password.spec.DigestPasswordSpec
All Implemented Interfaces:
KeySpec, PasswordSpec

public final class DigestPasswordSpec extends Object implements PasswordSpec
A PasswordSpec for a password represented by a Digest Response as seen in Digest-MD5 SASL/HTTP mechanism.
Author:
Peter Skopek, Darran Lofthouse
  • Constructor Details

    • DigestPasswordSpec

      public DigestPasswordSpec(String username, String realm, byte[] digest)
      Parameters:
      username - the username
      realm - the realm (name of a collection of accounts)
      digest - the digest: H( username ":" realm ":" password )
  • Method Details

    • getUsername

      public String getUsername()
      Returns:
      the username
    • getRealm

      public String getRealm()
      Returns:
      the realm (name of a collection of accounts)
    • getDigest

      public byte[] getDigest()
      Returns:
      the digest: H( username ":" realm ":" password )
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object