Class DigestPasswordSpec

    • Field Detail

      • username

        private final String username
      • realm

        private final String realm
      • digest

        private final byte[] digest
    • Constructor Detail

      • 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 Detail

      • 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 )
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object