org.apache.http.impl.auth.win
Class WindowsNegotiateScheme

java.lang.Object
  extended by org.apache.http.impl.auth.AuthSchemeBase
      extended by 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

Field Summary
 
Fields inherited from class org.apache.http.impl.auth.AuthSchemeBase
challengeState
 
Constructor Summary
WindowsNegotiateScheme(String scheme, String servicePrincipalName)
           
 
Method Summary
 org.apache.http.Header authenticate(Credentials credentials, org.apache.http.HttpRequest request)
          Deprecated. Use authenticate(Credentials, HttpRequest, HttpContext)
 org.apache.http.Header authenticate(Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
           
 void dispose()
           
 void finalize()
           
 String getParameter(String name)
           
 String getRealm()
           
 String getSchemeName()
           
 boolean isComplete()
           
 boolean isConnectionBased()
           
protected  void parseChallenge(org.apache.http.util.CharArrayBuffer buffer, int beginIndex, int endIndex)
           
 
Methods inherited from class org.apache.http.impl.auth.AuthSchemeBase
getChallengeState, isProxy, processChallenge, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WindowsNegotiateScheme

public WindowsNegotiateScheme(String scheme,
                              String servicePrincipalName)
Method Detail

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–2020 The Apache Software Foundation. All rights reserved.