public enum HttpAuthenticationMethods extends java.lang.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(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getId()
public AbstractAuthLogicHandler getNewHandler(ProxyIoSession proxyIoSession) throws ProxyAuthException
AbstractAuthLogicHandler
to handle the authentication mechanism.proxyIoSession
- the proxy session objectProxyAuthException
public 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
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.