public enum HttpAuthenticationMethods extends java.lang.Enum<HttpAuthenticationMethods>
限定符和类型 | 方法和说明 |
---|---|
int |
getId() |
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(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static HttpAuthenticationMethods[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public int getId()
public AbstractAuthLogicHandler getNewHandler(ProxyIoSession proxyIoSession) throws ProxyAuthException
AbstractAuthLogicHandler
to handle the authentication mechanism.proxyIoSession
- the proxy session objectProxyAuthException
- If we get an error during the proxy authenticationpublic 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
- If we get an error during the proxy authentication