org.apache.http.impl.auth
Class GGSSchemeBase
java.lang.Object
   org.apache.http.impl.auth.AuthSchemeBase
org.apache.http.impl.auth.AuthSchemeBase
       org.apache.http.impl.auth.GGSSchemeBase
org.apache.http.impl.auth.GGSSchemeBase
- All Implemented Interfaces: 
- AuthScheme, ContextAwareAuthScheme
- Direct Known Subclasses: 
- KerberosScheme, NegotiateScheme, SPNegoScheme
- public abstract class GGSSchemeBase 
- extends AuthSchemeBase
- Since:
- 4.2
 
 
| Method Summary | 
|  org.apache.http.Header | authenticate(Credentials credentials,
             org.apache.http.HttpRequest request)Deprecated. (4.2) Use
 ContextAwareAuthScheme.authenticate(
   Credentials, HttpRequest, org.apache.http.protocol.HttpContext) | 
|  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. | 
| protected  byte[] | generateGSSToken(byte[] input,
                 Oid oid,
                 String authServer)
 | 
| protected  byte[] | generateGSSToken(byte[] input,
                 Oid oid,
                 String authServer,
                 Credentials credentials)
 | 
| protected  byte[] | generateToken(byte[] input,
              String authServer)Deprecated. (4.4) Use
 generateToken(byte[], String, org.apache.http.auth.Credentials). | 
| protected  byte[] | generateToken(byte[] input,
              String authServer,
              Credentials credentials)
 | 
| protected  GSSManager | getManager()
 | 
|  boolean | isComplete()Authentication process may involve a series of challenge-response exchanges.
 | 
| protected  void | parseChallenge(org.apache.http.util.CharArrayBuffer buffer,
               int beginIndex,
               int endIndex)
 | 
 
 
 
 
getManager
protected GSSManager getManager()
- 
 
generateGSSToken
protected byte[] generateGSSToken(byte[] input,
                                  Oid oid,
                                  String authServer)
                           throws GSSException
- 
- Throws:
- GSSException
 
generateGSSToken
protected byte[] generateGSSToken(byte[] input,
                                  Oid oid,
                                  String authServer,
                                  Credentials credentials)
                           throws GSSException
- 
- Throws:
- GSSException
- Since:
- 4.4
 
generateToken
@Deprecated
protected byte[] generateToken(byte[] input,
                                          String authServer)
                        throws GSSException
- Deprecated. (4.4) Use generateToken(byte[], String, org.apache.http.auth.Credentials).
 
- 
- Throws:
- GSSException
 
generateToken
protected byte[] generateToken(byte[] input,
                               String authServer,
                               Credentials credentials)
                        throws GSSException
- 
- Throws:
- GSSException
- Since:
- 4.4
 
isComplete
public boolean isComplete()
- Description copied from interface: AuthScheme
- Authentication process may involve a series of challenge-response exchanges.
 This method tests if the authorization process has been completed, either
 successfully or unsuccessfully, that is, all the required authorization
 challenges have been processed in their entirety.
 
- 
- Returns:
- trueif the authentication process has been completed,- falseotherwise.
 
authenticate
@Deprecated
public org.apache.http.Header authenticate(Credentials credentials,
                                                      org.apache.http.HttpRequest request)
                                    throws AuthenticationException
- Deprecated. (4.2) Use ContextAwareAuthScheme.authenticate(
   Credentials, HttpRequest, org.apache.http.protocol.HttpContext)
 
- Description copied from interface: AuthScheme
- Produces an authorization string for the given set of Credentials.
 
- 
- Parameters:
- credentials- The set of credentials to be used for athentication
- request- The request being authenticated
- Returns:
- the authorization string
- Throws:
- AuthenticationException- if authorization string cannot
   be generated due to an authentication failure
 
authenticate
public org.apache.http.Header authenticate(Credentials credentials,
                                           org.apache.http.HttpRequest request,
                                           org.apache.http.protocol.HttpContext context)
                                    throws AuthenticationException
- Description copied from interface: ContextAwareAuthScheme
- Produces an authorization string for the given set of
 Credentials.
 
- 
- Specified by:
- authenticatein interface- ContextAwareAuthScheme
- Overrides:
- authenticatein class- AuthSchemeBase
 
- 
- Parameters:
- credentials- The set of credentials to be used for athentication
- request- The request being authenticated
- context- HTTP context
- Returns:
- the authorization string
- Throws:
- AuthenticationException- if authorization string cannot
   be generated due to an authentication failure
 
parseChallenge
protected void parseChallenge(org.apache.http.util.CharArrayBuffer buffer,
                              int beginIndex,
                              int endIndex)
                       throws MalformedChallengeException
- 
- Specified by:
- parseChallengein class- AuthSchemeBase
 
- 
- Throws:
- MalformedChallengeException
 
Copyright © 1999–2020 The Apache Software Foundation. All rights reserved.