Instances of an HttpAuthMethod are not thread-safe, as some implementations may need to maintain per-connection state information.
| Modifier and Type | Class and Description |
|---|---|
| private static class | HttpAuthMethod.
Performs HTTP basic authentication (plaintext username/password). |
| private static class | HttpAuthMethod.
Performs HTTP digest authentication. |
| private static class | |
| private static class | HttpAuthMethod.
Performs no user authentication. |
| public static enum | HttpAuthMethod.
Enum listing the http authentication method types supported by jgit. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final String | |
| pack-priv static final String | |
| protected final HttpAuthMethod. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | Returns: true if the authentication method is able to provide authorization for the given URIthe URI used to create the connection. uri, CredentialsProvider the credentials provider, or null. If provided,
credentialsProvider)credentials in the URI are ignored.Update this method with the credentials from the URIish. |
| pack-priv abstract void | |
| pack-priv abstract void | configureRequest(HttpConnection
the connection to configure conn)Update connection properties based on this authentication method. |
| public HttpAuthMethod. | |
| pack-priv static HttpAuthMethod | Returns: new authentication method to try.the connection that failed. conn, Collection<HttpAuthMethod.authentication types to be ignored. ignoreTypesHandle an authentication failure and possibly return a new response. |
| EMPTY_STRING | back to summary |
|---|---|
| pack-priv static final String EMPTY_STRING | |
| SCHEMA_NAME_SEPARATOR | back to summary |
|---|---|
| pack-priv static final String SCHEMA_NAME_SEPARATOR | |
| type | back to summary |
|---|---|
| protected final HttpAuthMethod. | |
| HttpAuthMethod | back to summary |
|---|---|
| protected HttpAuthMethod(HttpAuthMethod. Constructor for HttpAuthMethod.
| |
| authorize | back to summary |
|---|---|
| pack-priv boolean authorize(URIish uri, CredentialsProvider credentialsProvider) Update this method with the credentials from the URIish.
| |
| authorize | back to summary |
|---|---|
| pack-priv abstract void authorize(String user, String pass) Update this method with the given username and password pair. | |
| configureRequest | back to summary |
|---|---|
| pack-priv abstract void configureRequest(HttpConnection conn) throws IOException Update connection properties based on this authentication method.
| |
| getType | back to summary |
|---|---|
| public HttpAuthMethod. Gives the method type associated to this http auth method
| |
| scanResponse | back to summary |
|---|---|
| pack-priv static HttpAuthMethod scanResponse(final HttpConnection conn, Collection<HttpAuthMethod. Handle an authentication failure and possibly return a new response.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | authorize(String
username username, String password password)Implements abstract org. Update this method with the given username and password pair. |
| pack-priv void | configureRequest(HttpConnection
the connection to configure conn)Implements abstract org. Update connection properties based on this authentication method. |
| Basic | back to summary |
|---|---|
| public Basic() | |
| authorize | back to summary |
|---|---|
| pack-priv void authorize(String username, String password) Implements abstract org. Doc from org. Update this method with the given username and password pair. | |
| configureRequest | back to summary |
|---|---|
| pack-priv void configureRequest(HttpConnection conn) throws IOException Implements abstract org. Doc from org. Update connection properties based on this authentication method.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final char[] | |
| private final Map | |
| private String | |
| private static final SecureRandom | |
| private int | |
| private String |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | authorize(String
username username, String password password)Implements abstract org. Update this method with the given username and password pair. |
| pack-priv void | configureRequest(HttpConnection
the connection to configure conn)Implements abstract org. Update connection properties based on this authentication method. |
| private static String | |
| private static String | |
| private static String | |
| private static MessageDigest | |
| private static Map | |
| private static String |
| LHEX | back to summary |
|---|---|
| private static final char[] LHEX | |
| params | back to summary |
|---|---|
| private final Map<String, String> params | |
| pass | back to summary |
|---|---|
| private String pass | |
| PRNG | back to summary |
|---|---|
| private static final SecureRandom PRNG | |
| requestCount | back to summary |
|---|---|
| private int requestCount | |
| user | back to summary |
|---|---|
| private String user | |
| Digest | back to summary |
|---|---|
| pack-priv Digest(String hdr) | |
| authorize | back to summary |
|---|---|
| pack-priv void authorize(String username, String password) Implements abstract org. Doc from org. Update this method with the given username and password pair. | |
| configureRequest | back to summary |
|---|---|
| pack-priv void configureRequest(HttpConnection conn) throws IOException Implements abstract org. Doc from org. Update connection properties based on this authentication method.
| |
| H | back to summary |
|---|---|
| private static String H(String data) | |
| KD | back to summary |
|---|---|
| private static String KD(String secret, String data) | |
| LHEX | back to summary |
|---|---|
| private static String LHEX(byte[] bin) | |
| newMD5 | back to summary |
|---|---|
| private static MessageDigest newMD5() | |
| parse | back to summary |
|---|---|
| private static Map | |
| uri | back to summary |
|---|---|
| private static String uri(URL u) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final GSSManagerFactory | |
| private static final Oid | |
| private final byte[] |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | authorize(String
username user, String password pass)Implements abstract org. Update this method with the given username and password pair. |
| pack-priv void | configureRequest(HttpConnection
the connection to configure conn)Implements abstract org. Update connection properties based on this authentication method. |
| GSS_MANAGER_FACTORY | back to summary |
|---|---|
| private static final GSSManagerFactory GSS_MANAGER_FACTORY | |
| OID | back to summary |
|---|---|
| private static final Oid OID | |
| prevToken | back to summary |
|---|---|
| private final byte[] prevToken | |
| Negotiate | back to summary |
|---|---|
| public Negotiate(String hdr) | |
| authorize | back to summary |
|---|---|
| pack-priv void authorize(String user, String pass) Implements abstract org. Doc from org. Update this method with the given username and password pair. | |
| configureRequest | back to summary |
|---|---|
| pack-priv void configureRequest(HttpConnection conn) throws IOException Implements abstract org. Doc from org. Update connection properties based on this authentication method.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final HttpAuthMethod. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | authorize(String
username user, String password pass)Implements abstract org. Update this method with the given username and password pair. |
| pack-priv void | configureRequest(HttpConnection
the connection to configure conn)Implements abstract org. Update connection properties based on this authentication method. |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final HttpAuthMethod. | |
| None | back to summary |
|---|---|
| public None() | |
| authorize | back to summary |
|---|---|
| pack-priv void authorize(String user, String pass) Implements abstract org. Doc from org. Update this method with the given username and password pair. | |
| configureRequest | back to summary |
|---|---|
| pack-priv void configureRequest(HttpConnection conn) throws IOException Implements abstract org. Doc from org. Update connection properties based on this authentication method.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final HttpAuthMethod. | |
| public static final HttpAuthMethod. | |
| public static final HttpAuthMethod. | |
| public static final HttpAuthMethod. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public abstract String | Returns: the name of the authentication scheme in the form to be used in HTTP authentication headers as specified in RFC2617 and RFC4559
|
| public abstract HttpAuthMethod | |
| public static HttpAuthMethod. | |
| public static HttpAuthMethod. |
| BASIC | back to summary |
|---|---|
| public static final HttpAuthMethod. | |
| DIGEST | back to summary |
|---|---|
| public static final HttpAuthMethod. | |
| NEGOTIATE | back to summary |
|---|---|
| public static final HttpAuthMethod. | |
| NONE | back to summary |
|---|---|
| public static final HttpAuthMethod. | |
| Type | back to summary |
|---|---|
| private Type() | |
| getSchemeName | back to summary |
|---|---|
public abstract String getSchemeName()
| |
| method | back to summary |
|---|---|
| public abstract HttpAuthMethod method(String hdr) Creates a HttpAuthMethod instance configured with the provided HTTP WWW-Authenticate header.
| |
| valueOf | back to summary |
|---|---|
| public static HttpAuthMethod. | |
| values | back to summary |
|---|---|
| public static HttpAuthMethod. | |