Enum ProxyAuthScheme
- All Implemented Interfaces:
Serializable,Comparable<ProxyAuthScheme>
Supported auth schemes for authentication with a proxy.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvalue()static ProxyAuthSchemeReturns the enum constant of this type with the specified name.static ProxyAuthScheme[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BASIC
Basic authentication, as defined by RFC 7617. Requires a username and password. -
NEGOTIATE
Kerberos authentication, using SPNEGO as defined by RFC 4559.Credentials are read from the environment Kerberos ticket cache. The client never prompts for a password and never reads a keytab, so the environment must already hold a valid ticket-granting ticket, typically obtained by running
kinitand verifiable withklist. The cache location follows the usual Kerberos conventions, including theKRB5CCNAMEenvironment variable. Any username and password configured on the proxy are ignored.
-
-
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
-
value
-