oauthP5.oauth
Class TokenExtractorImpl

java.lang.Object
  extended by oauthP5.oauth.TokenExtractorImpl
All Implemented Interfaces:
AccessTokenExtractor, RequestTokenExtractor

public class TokenExtractorImpl
extends Object
implements RequestTokenExtractor, AccessTokenExtractor

Default implementation of and . Conforms to OAuth 1.0a The process for extracting access and request tokens is similar so this class can do both things.

Author:
Pablo Fernandez

Constructor Summary
TokenExtractorImpl()
           
 
Method Summary
 Token extract(String response)
          Extracts the request token from the contents of an Http Response
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenExtractorImpl

public TokenExtractorImpl()
Method Detail

extract

public Token extract(String response)
Extracts the request token from the contents of an Http Response

Specified by:
extract in interface AccessTokenExtractor
Specified by:
extract in interface RequestTokenExtractor
Parameters:
response - the contents of the response
Returns:
OAuth access token


Processing library oauthP5 by New York Times R&D Lab. (c) 2012