Class DigestLib

java.lang.Object
org.apache.jena.http.auth.DigestLib

public class DigestLib extends Object
  • Constructor Details

    • DigestLib

      public DigestLib()
  • Method Details

    • calcDigestChallengeResponse

      public static String calcDigestChallengeResponse(AuthChallenge auth, String username, String password, String method, String requestTarget, String cnonce, String nc, String authType)
      From the challenge, username and password, calculate the response.field.
    • generateNonce

      public static String generateNonce()
      Generate a nonce for the client to use in a digest auth session. Each call of this static method returns a new string (to within the limits of random number generation).
    • buildDigest

      public static AuthRequestModifier buildDigest(AuthChallenge aHeader, String user, String password, String method, String requestTarget)
      Function to modify a HttpRequest.Builder for digest authentication. One instance of this function is used for each digest session.