public class WindowsNegotiateScheme extends AuthSchemeBase
This will delegate negotiation to the windows machine.
EXPERIMENTAL
challengeState
Constructor and Description |
---|
WindowsNegotiateScheme(String scheme,
String servicePrincipalName) |
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 an authorization string for the given set of
Credentials . |
void |
dispose() |
void |
finalize() |
String |
getParameter(String name)
Returns authentication parameter with the given name, if available.
|
String |
getRealm()
Returns authentication realm.
|
String |
getSchemeName()
Returns textual designation of the given authentication scheme.
|
boolean |
isComplete()
Authentication process may involve a series of challenge-response exchanges.
|
boolean |
isConnectionBased()
Tests if the authentication scheme is provides authorization on a per
connection basis instead of usual per request basis
|
protected void |
parseChallenge(org.apache.http.util.CharArrayBuffer buffer,
int beginIndex,
int endIndex) |
getChallengeState, isProxy, processChallenge, toString
public void dispose()
public void finalize() throws Throwable
public String getSchemeName()
AuthScheme
public String getParameter(String name)
AuthScheme
name
- The name of the parameter to be returnedpublic String getRealm()
AuthScheme
null
.public boolean isConnectionBased()
AuthScheme
true
if the scheme is connection based, false
if the scheme is request based.protected void parseChallenge(org.apache.http.util.CharArrayBuffer buffer, int beginIndex, int endIndex) throws MalformedChallengeException
parseChallenge
in class AuthSchemeBase
MalformedChallengeException
public org.apache.http.Header authenticate(Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws AuthenticationException
ContextAwareAuthScheme
Credentials
.authenticate
in interface ContextAwareAuthScheme
authenticate
in class AuthSchemeBase
credentials
- The set of credentials to be used for athenticationrequest
- The request being authenticatedcontext
- HTTP contextAuthenticationException
- if authorization string cannot
be generated due to an authentication failurepublic boolean isComplete()
AuthScheme
true
if the authentication process has been completed,
false
otherwise.@Deprecated public org.apache.http.Header authenticate(Credentials credentials, org.apache.http.HttpRequest request) throws AuthenticationException
authenticate(Credentials, HttpRequest, HttpContext)
AuthScheme
Credentials
.credentials
- The set of credentials to be used for athenticationrequest
- The request being authenticatedAuthenticationException
- if authorization string cannot
be generated due to an authentication failureCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.