| 
 | ||||||||||
| 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.GGSSchemeBase
org.apache.http.impl.auth.NegotiateScheme
SPNegoScheme or KerberosScheme.
@Deprecated public class NegotiateScheme
SPNEGO (Simple and Protected GSSAPI Negotiation Mechanism) authentication scheme.
| Field Summary | 
|---|
| Fields inherited from class org.apache.http.impl.auth.AuthSchemeBase | 
|---|
| challengeState | 
| Constructor Summary | |
|---|---|
| NegotiateScheme()Deprecated. | |
| NegotiateScheme(SpnegoTokenGenerator spengoGenerator)Deprecated. | |
| NegotiateScheme(SpnegoTokenGenerator spengoGenerator,
                boolean stripPort)Deprecated. Default constructor for the Negotiate authentication scheme. | |
| Method Summary | |
|---|---|
|  org.apache.http.Header | authenticate(Credentials credentials,
             org.apache.http.HttpRequest request)Deprecated. Produces an authorization string for the given set of Credentials. | 
|  org.apache.http.Header | authenticate(Credentials credentials,
             org.apache.http.HttpRequest request,
             org.apache.http.protocol.HttpContext context)Deprecated. Produces Negotiate authorization Header based on token created by processChallenge. | 
| protected  byte[] | generateToken(byte[] input,
              String authServer)Deprecated. | 
| protected  byte[] | generateToken(byte[] input,
              String authServer,
              Credentials credentials)Deprecated. | 
|  String | getParameter(String name)Deprecated. Returns the authentication parameter with the given name, if available. | 
|  String | getRealm()Deprecated. The concept of an authentication realm is not supported by the Negotiate authentication scheme. | 
|  String | getSchemeName()Deprecated. Returns textual designation of the Negotiate authentication scheme. | 
|  boolean | isConnectionBased()Deprecated. Returns true. | 
| Methods inherited from class org.apache.http.impl.auth.GGSSchemeBase | 
|---|
| generateGSSToken, generateGSSToken, getManager, isComplete, parseChallenge | 
| Methods inherited from class org.apache.http.impl.auth.AuthSchemeBase | 
|---|
| getChallengeState, 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 String getSchemeName()
Negotiate
public org.apache.http.Header authenticate(Credentials credentials,
                                           org.apache.http.HttpRequest request)
                                    throws AuthenticationException
AuthSchemeCredentials.
authenticate in interface AuthSchemeauthenticate in class GGSSchemeBasecredentials - The set of credentials to be used for athenticationrequest - The request being authenticated
AuthenticationException - if authorization string cannot
   be generated due to an authentication failure
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 GGSSchemeBasecredentials - 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 failure
protected byte[] generateToken(byte[] input,
                               String authServer)
                        throws GSSException
generateToken in class GGSSchemeBaseGSSException
protected byte[] generateToken(byte[] input,
                               String authServer,
                               Credentials credentials)
                        throws GSSException
generateToken in class GGSSchemeBaseGSSExceptionpublic 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()
true.
 Negotiate authentication scheme is connection based.
true.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||