org.eclipse.egit.github.core.client
Class OAuth2Scheme

java.lang.Object
  extended by org.apache.http.impl.auth.AuthSchemeBase
      extended by org.apache.http.impl.auth.RFC2617Scheme
          extended by 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.


Constructor Summary
OAuth2Scheme()
           
 
Method Summary
 org.apache.http.Header authenticate(org.apache.http.auth.Credentials credentials, org.apache.http.HttpRequest request)
           
 String getSchemeName()
           
 boolean isComplete()
           
 boolean isConnectionBased()
           
 void processChallenge(org.apache.http.Header header)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OAuth2Scheme

public OAuth2Scheme()
Method Detail

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.