com.dyuproject.oauth
Class ConsumerContext

java.lang.Object
  extended by com.dyuproject.oauth.ConsumerContext

public final class ConsumerContext
extends Object

ConsumerContext - contains all necessary objects to operate on oauth procedures.

Author:
David Yu
Date created:
May 29, 2009

Constructor Summary
ConsumerContext(HttpConnector httpConnector, NonceAndTimestamp nonceAndTimestamp, Map<String,Endpoint> endpoints)
           
 
Method Summary
 ConsumerContext addEndpoint(Endpoint ep)
          Adds an Endpoint to this context.
 Endpoint getEndpoint(String domain)
          Gets an endpoint from this context from the given domain.
 HttpConnector getHttpConnector()
          Gets the http connector.
 NonceAndTimestamp getNonceAndTimestamp()
          Gets the nonce and timestamp generator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsumerContext

public ConsumerContext(HttpConnector httpConnector,
                       NonceAndTimestamp nonceAndTimestamp,
                       Map<String,Endpoint> endpoints)
Method Detail

getHttpConnector

public HttpConnector getHttpConnector()
Gets the http connector.


getNonceAndTimestamp

public NonceAndTimestamp getNonceAndTimestamp()
Gets the nonce and timestamp generator.


addEndpoint

public ConsumerContext addEndpoint(Endpoint ep)
Adds an Endpoint to this context.


getEndpoint

public Endpoint getEndpoint(String domain)
Gets an endpoint from this context from the given domain.



Copyright © 2008-2013. All Rights Reserved.