org.apache.abdera.ext.oauth
Class OAuthScheme

java.lang.Object
  extended by org.apache.commons.httpclient.auth.RFC2617Scheme
      extended by org.apache.abdera.ext.oauth.OAuthScheme
All Implemented Interfaces:
org.apache.commons.httpclient.auth.AuthScheme

public class OAuthScheme
extends org.apache.commons.httpclient.auth.RFC2617Scheme
implements org.apache.commons.httpclient.auth.AuthScheme

OAuth Scheme implementation for use with HTTP Commons AbderaClient

Author:
David Calavera
See Also:
http://oauth.org, http://oauth.googlecode.com/svn/spec/branches/1.0/drafts/7/spec.html

Constructor Summary
OAuthScheme()
           
 
Method Summary
 String authenticate(org.apache.commons.httpclient.Credentials credentials, org.apache.commons.httpclient.HttpMethod method)
           
 String authenticate(org.apache.commons.httpclient.Credentials credentials, String method, String uri)
           
 String getSchemeName()
           
 boolean isComplete()
           
 boolean isConnectionBased()
           
static void register(AbderaClient abderaClient, boolean exclusive)
           
 
Methods inherited from class org.apache.commons.httpclient.auth.RFC2617Scheme
getID, getParameter, getParameters, getRealm, processChallenge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.httpclient.auth.AuthScheme
getID, getParameter, getRealm, processChallenge
 

Constructor Detail

OAuthScheme

public OAuthScheme()
Method Detail

register

public static void register(AbderaClient abderaClient,
                            boolean exclusive)

authenticate

public String authenticate(org.apache.commons.httpclient.Credentials credentials,
                           String method,
                           String uri)
                    throws org.apache.commons.httpclient.auth.AuthenticationException
Specified by:
authenticate in interface org.apache.commons.httpclient.auth.AuthScheme
Throws:
org.apache.commons.httpclient.auth.AuthenticationException

authenticate

public String authenticate(org.apache.commons.httpclient.Credentials credentials,
                           org.apache.commons.httpclient.HttpMethod method)
                    throws org.apache.commons.httpclient.auth.AuthenticationException
Specified by:
authenticate in interface org.apache.commons.httpclient.auth.AuthScheme
Throws:
org.apache.commons.httpclient.auth.AuthenticationException

getSchemeName

public String getSchemeName()
Specified by:
getSchemeName in interface org.apache.commons.httpclient.auth.AuthScheme

isComplete

public boolean isComplete()
Specified by:
isComplete in interface org.apache.commons.httpclient.auth.AuthScheme

isConnectionBased

public boolean isConnectionBased()
Specified by:
isConnectionBased in interface org.apache.commons.httpclient.auth.AuthScheme


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.