org.eclipse.egit.github.core.client
Class OAuth2Scheme
java.lang.Object
org.apache.http.impl.auth.AuthSchemeBase
org.apache.http.impl.auth.RFC2617Scheme
org.eclipse.egit.github.core.client.OAuth2Scheme
- All Implemented Interfaces:
- org.apache.http.auth.AuthScheme, org.apache.http.auth.ContextAwareAuthScheme
public class OAuth2Scheme
- extends org.apache.http.impl.auth.RFC2617Scheme
OAuth2 authorization scheme. Sets an authorization header with a value of the
space-separated user principal name and password from credentials.
| Methods inherited from class org.apache.http.impl.auth.RFC2617Scheme |
getParameter, getParameters, getRealm, parseChallenge |
| Methods inherited from class org.apache.http.impl.auth.AuthSchemeBase |
authenticate, isProxy, toString |
OAuth2Scheme
public OAuth2Scheme()
processChallenge
public void processChallenge(org.apache.http.Header header)
throws org.apache.http.auth.MalformedChallengeException
- Specified by:
processChallenge in interface org.apache.http.auth.AuthScheme- Overrides:
processChallenge in class org.apache.http.impl.auth.AuthSchemeBase
- Throws:
org.apache.http.auth.MalformedChallengeException
getSchemeName
public String getSchemeName()
isConnectionBased
public boolean isConnectionBased()
isComplete
public boolean isComplete()
authenticate
public org.apache.http.Header authenticate(org.apache.http.auth.Credentials credentials,
org.apache.http.HttpRequest request)
throws org.apache.http.auth.AuthenticationException
- Throws:
org.apache.http.auth.AuthenticationException
Copyright © 2012. All Rights Reserved.