Package org.apache.jena.http.auth
Class DigestLib
java.lang.Object
org.apache.jena.http.auth.DigestLib
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthRequestModifierbuildDigest(AuthChallenge aHeader, String user, String password, String method, String requestTarget) Function to modify aHttpRequest.Builderfor digest authentication.static StringcalcDigestChallengeResponse(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.static StringGenerate a nonce for the client to use in a digest auth session.
-
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
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 aHttpRequest.Builderfor digest authentication. One instance of this function is used for each digest session.
-