Class DigestAuthClientCredentials

java.lang.Object
com.helger.http.digestauth.DigestAuthClientCredentials

@Immutable public class DigestAuthClientCredentials extends Object
Credentials for HTTP digest authentication
Author:
Philip Helger
  • Field Details

    • EXPECTED_RESPONSE_LENGTH

      public static final int EXPECTED_RESPONSE_LENGTH
      See Also:
    • EXPECTED_NONCE_COUNT_LENGTH

      public static final int EXPECTED_NONCE_COUNT_LENGTH
      See Also:
  • Constructor Details

    • DigestAuthClientCredentials

      public DigestAuthClientCredentials(@Nonnull @Nonempty String sUserName, @Nonnull @Nonempty String sRealm, @Nonnull @Nonempty String sServerNonce, @Nonnull @Nonempty String sDigestURI, @Nonnull @Nonempty String sResponse, @Nullable String sAlgorithm, @Nullable String sClientNonce, @Nullable String sOpaque, @Nullable String sMessageQOP, @Nullable String sNonceCount)
  • Method Details

    • getUserName

      @Nonnull @Nonempty public String getUserName()
      Returns:
      The user name. Neither null nor empty.
    • getRealm

      @Nonnull @Nonempty public String getRealm()
      Returns:
      The realm. Neither null nor empty.
    • getServerNonce

      @Nonnull @Nonempty public String getServerNonce()
      Returns:
      The nonce. Neither null nor empty.
    • getDigestURI

      @Nonnull @Nonempty public String getDigestURI()
      Returns:
      The digest URI. Neither null nor empty.
    • getResponse

      @Nullable public String getResponse()
    • getAlgorithm

      @Nullable public String getAlgorithm()
    • getClientNonce

      @Nullable public String getClientNonce()
    • getOpaque

      @Nullable public String getOpaque()
    • getMessageQOP

      @Nullable public String getMessageQOP()
    • getNonceCount

      @CheckForSigned public int getNonceCount()
    • getRequestValue

      @Nonnull @Nonempty public String getRequestValue()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object