|
||||||||||
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 | |
---|---|
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 org.ietf.jgss.GSSManager |
getManager()
|
java.lang.String |
getParameter(java.lang.String name)
Returns the authentication parameter with the given name, if available. |
java.lang.String |
getRealm()
The concept of an authentication realm is not supported by the Negotiate authentication scheme. |
java.lang.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)
|
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 java.lang.String getSchemeName()
Negotiate
@Deprecated public org.apache.http.Header authenticate(Credentials credentials, org.apache.http.HttpRequest request) throws AuthenticationException
AuthScheme
Credentials
.
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 org.ietf.jgss.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 ContextAwareAuthScheme
authenticate
in class AuthSchemeBase
credentials
- 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 java.lang.String getParameter(java.lang.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 java.lang.String getRealm()
null
.
null
public boolean isConnectionBased()
protected void parseChallenge(org.apache.http.util.CharArrayBuffer buffer, int beginIndex, int endIndex) throws MalformedChallengeException
parseChallenge
in class AuthSchemeBase
MalformedChallengeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |