org.apache.http.impl.auth.win
Class WindowsNegotiateScheme
java.lang.Object
org.apache.http.impl.auth.AuthSchemeBase
org.apache.http.impl.auth.win.WindowsNegotiateScheme
- All Implemented Interfaces:
- AuthScheme, ContextAwareAuthScheme
public class WindowsNegotiateScheme
- extends AuthSchemeBase
Auth scheme that makes use of JNA to implement Negotiate and NTLM on Windows Platforms.
This will delegate negotiation to the windows machine.
EXPERIMENTAL
- Since:
- 4.4
WindowsNegotiateScheme
public WindowsNegotiateScheme(String scheme,
String servicePrincipalName)
dispose
public void dispose()
finalize
public void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable
getSchemeName
public String getSchemeName()
getParameter
public String getParameter(String name)
getRealm
public String getRealm()
isConnectionBased
public boolean isConnectionBased()
parseChallenge
protected void parseChallenge(org.apache.http.util.CharArrayBuffer buffer,
int beginIndex,
int endIndex)
throws MalformedChallengeException
- Specified by:
parseChallenge
in class AuthSchemeBase
- Throws:
MalformedChallengeException
authenticate
public org.apache.http.Header authenticate(Credentials credentials,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
throws AuthenticationException
- Specified by:
authenticate
in interface ContextAwareAuthScheme
- Overrides:
authenticate
in class AuthSchemeBase
- Throws:
AuthenticationException
isComplete
public boolean isComplete()
authenticate
@Deprecated
public org.apache.http.Header authenticate(Credentials credentials,
org.apache.http.HttpRequest request)
throws AuthenticationException
- Deprecated. Use
authenticate(Credentials, HttpRequest, HttpContext)
- Throws:
AuthenticationException
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.