public enum HttpAuthenticationMethods extends Enum<HttpAuthenticationMethods>
Enum Constant and Description |
---|
BASIC
Basic authentication
|
DIGEST
Digest authentication
|
NO_AUTH
No authentication
|
NTLM
NTLM (Microsoft) authentication
|
Modifier and Type | Method and Description |
---|---|
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(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 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 authenticationCopyright © 2004–2021 Apache MINA Project. All rights reserved.