Package org.eclipse.jgit.transport
Enum HttpAuthMethod.Type
- All Implemented Interfaces:
Serializable
,Comparable<HttpAuthMethod.Type>
- Enclosing class:
HttpAuthMethod
Enum listing the http authentication method types supported by jgit. They
are sorted by priority order!!!
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
abstract HttpAuthMethod
Creates a HttpAuthMethod instance configured with the provided HTTP WWW-Authenticate header.static HttpAuthMethod.Type
Returns the enum constant of this type with the specified name.static HttpAuthMethod.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
-
BASIC
-
DIGEST
-
NEGOTIATE
-
-
Constructor Details
-
Type
private Type()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
method
Creates a HttpAuthMethod instance configured with the provided HTTP WWW-Authenticate header.- Parameters:
hdr
- the http header- Returns:
- a configured HttpAuthMethod instance
-
getSchemeName
- Returns:
- the name of the authentication scheme in the form to be used in HTTP authentication headers as specified in RFC2617 and RFC4559
-