public enum HttpAuthenticationMethods extends Enum<HttpAuthenticationMethods>
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Returns the authentication mechanism id.
|
static AbstractAuthLogicHandler |
getNewHandler(int method,
ProxyIoSession proxyIoSession)
Creates an
AbstractAuthLogicHandler to handle the authentication mechanism. |
AbstractAuthLogicHandler |
getNewHandler(ProxyIoSession proxyIoSession)
Creates an
AbstractAuthLogicHandler to handle the authentication mechanism. |
static HttpAuthenticationMethods |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpAuthenticationMethods[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpAuthenticationMethods NO_AUTH
public static final HttpAuthenticationMethods BASIC
public static final HttpAuthenticationMethods NTLM
public static final HttpAuthenticationMethods DIGEST
public static HttpAuthenticationMethods[] values()
for (HttpAuthenticationMethods c : HttpAuthenticationMethods.values()) System.out.println(c);
public static HttpAuthenticationMethods valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic int getId()
public AbstractAuthLogicHandler getNewHandler(ProxyIoSession proxyIoSession) throws ProxyAuthException
AbstractAuthLogicHandler to handle the authentication mechanism.proxyIoSession - the proxy session objectProxyAuthExceptionpublic static AbstractAuthLogicHandler getNewHandler(int method, ProxyIoSession proxyIoSession) throws ProxyAuthException
AbstractAuthLogicHandler to handle the authentication mechanism.method - the authentication mechanism to useproxyIoSession - the proxy session objectProxyAuthException