Package org.eclipse.jgit.transport
Class HttpAuthMethod.Digest
- java.lang.Object
-
- org.eclipse.jgit.transport.HttpAuthMethod
-
- org.eclipse.jgit.transport.HttpAuthMethod.Digest
-
- Enclosing class:
- HttpAuthMethod
private static class HttpAuthMethod.Digest extends HttpAuthMethod
Performs HTTP digest authentication.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jgit.transport.HttpAuthMethod
HttpAuthMethod.Type
-
-
Field Summary
Fields Modifier and Type Field Description private static char[]LHEXprivate java.util.Map<java.lang.String,java.lang.String>paramsprivate java.lang.Stringpassprivate static java.security.SecureRandomPRNGprivate intrequestCountprivate java.lang.Stringuser-
Fields inherited from class org.eclipse.jgit.transport.HttpAuthMethod
EMPTY_STRING, SCHEMA_NAME_SEPARATOR, type
-
-
Constructor Summary
Constructors Constructor Description Digest(java.lang.String hdr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidauthorize(java.lang.String username, java.lang.String password)Update this method with the given username and password pair.(package private) voidconfigureRequest(HttpConnection conn)Update connection properties based on this authentication method.private static java.lang.StringH(java.lang.String data)private static java.lang.StringKD(java.lang.String secret, java.lang.String data)private static java.lang.StringLHEX(byte[] bin)private static java.security.MessageDigestnewMD5()private static java.util.Map<java.lang.String,java.lang.String>parse(java.lang.String auth)private static java.lang.Stringuri(java.net.URL u)-
Methods inherited from class org.eclipse.jgit.transport.HttpAuthMethod
authorize, getType, scanResponse
-
-
-
-
Method Detail
-
authorize
void authorize(java.lang.String username, java.lang.String password)Description copied from class:HttpAuthMethodUpdate this method with the given username and password pair.- Specified by:
authorizein classHttpAuthMethod
-
configureRequest
void configureRequest(HttpConnection conn) throws java.io.IOException
Description copied from class:HttpAuthMethodUpdate connection properties based on this authentication method.- Specified by:
configureRequestin classHttpAuthMethod- Throws:
java.io.IOException
-
uri
private static java.lang.String uri(java.net.URL u)
-
H
private static java.lang.String H(java.lang.String data)
-
KD
private static java.lang.String KD(java.lang.String secret, java.lang.String data)
-
newMD5
private static java.security.MessageDigest newMD5()
-
LHEX
private static java.lang.String LHEX(byte[] bin)
-
parse
private static java.util.Map<java.lang.String,java.lang.String> parse(java.lang.String auth)
-
-