|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.impl.auth.AuthSchemeBase
org.apache.http.impl.auth.NegotiateScheme
public class NegotiateScheme
SPNEGO (Simple and Protected GSSAPI Negotiation Mechanism) authentication scheme.
| Constructor Summary | |
|---|---|
NegotiateScheme()
|
|
NegotiateScheme(SpnegoTokenGenerator spengoGenerator)
|
|
NegotiateScheme(SpnegoTokenGenerator spengoGenerator,
boolean stripPort)
Default constructor for the Negotiate authentication scheme. |
|
| Method Summary | |
|---|---|
Header |
authenticate(Credentials credentials,
HttpRequest request)
Deprecated. |
Header |
authenticate(Credentials credentials,
HttpRequest request,
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(CharArrayBuffer buffer,
int beginIndex,
int endIndex)
|
| Methods inherited from class org.apache.http.impl.auth.AuthSchemeBase |
|---|
isProxy, processChallenge, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NegotiateScheme(SpnegoTokenGenerator spengoGenerator,
boolean stripPort)
public NegotiateScheme(SpnegoTokenGenerator spengoGenerator)
public NegotiateScheme()
| Method Detail |
|---|
public boolean isComplete()
public String getSchemeName()
Negotiate
@Deprecated
public Header authenticate(Credentials credentials,
HttpRequest request)
throws AuthenticationException
AuthSchemeCredentials.
credentials - The set of credentials to be used for athenticationrequest - The request being authenticated
AuthenticationException - if authorization string cannot
be generated due to an authentication failureprotected GSSManager getManager()
public Header authenticate(Credentials credentials,
HttpRequest request,
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 context
AuthenticationException - 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 returned
public String getRealm()
null.
nullpublic boolean isConnectionBased()
protected void parseChallenge(CharArrayBuffer buffer,
int beginIndex,
int endIndex)
throws MalformedChallengeException
parseChallenge in class AuthSchemeBaseMalformedChallengeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||