public class NegotiateScheme extends AuthSchemeBase
| Constructor and Description |
|---|
NegotiateScheme() |
NegotiateScheme(SpnegoTokenGenerator spengoGenerator) |
NegotiateScheme(SpnegoTokenGenerator spengoGenerator,
boolean stripPort)
Default constructor for the Negotiate authentication scheme.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.Header |
authenticate(Credentials credentials,
org.apache.http.HttpRequest request)
Deprecated.
|
org.apache.http.Header |
authenticate(Credentials credentials,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Produces Negotiate authorization Header based on token created by
processChallenge.
|
protected GSSManager |
getManager() |
String |
getParameter(String name)
Returns the authentication parameter with the given name, if available.
|
String |
getRealm()
The concept of an authentication realm is not supported by the Negotiate
authentication scheme.
|
String |
getSchemeName()
Returns textual designation of the Negotiate authentication scheme.
|
boolean |
isComplete()
Tests if the Negotiate authentication process has been completed.
|
boolean |
isConnectionBased()
Returns true.
|
protected void |
parseChallenge(org.apache.http.util.CharArrayBuffer buffer,
int beginIndex,
int endIndex) |
isProxy, processChallenge, toStringpublic NegotiateScheme(SpnegoTokenGenerator spengoGenerator, boolean stripPort)
public NegotiateScheme(SpnegoTokenGenerator spengoGenerator)
public NegotiateScheme()
public boolean isComplete()
public String getSchemeName()
Negotiate@Deprecated public org.apache.http.Header authenticate(Credentials credentials, org.apache.http.HttpRequest request) throws AuthenticationException
AuthSchemeCredentials.credentials - The set of credentials to be used for athenticationrequest - The request being authenticatedAuthenticationException - if authorization string cannot
be generated due to an authentication failureprotected GSSManager getManager()
public org.apache.http.Header authenticate(Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws AuthenticationException
authenticate in interface ContextAwareAuthSchemeauthenticate in class AuthSchemeBasecredentials - Never used be the Negotiate scheme but must be provided to
satisfy common-httpclient API. Credentials from JAAS will be used instead.request - The request being authenticatedcontext - HTTP contextAuthenticationException - if authorisation string cannot
be generated due to an authentication failurepublic String getParameter(String name)
There are no valid parameters for Negotiate authentication so this method always returns null.
name - The name of the parameter to be returnedpublic String getRealm()
null.nullpublic boolean isConnectionBased()
protected void parseChallenge(org.apache.http.util.CharArrayBuffer buffer,
int beginIndex,
int endIndex)
throws MalformedChallengeException
parseChallenge in class AuthSchemeBaseMalformedChallengeExceptionCopyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.