oauthP5.oauth
Class TokenExtractorImpl
java.lang.Object
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
Method Summary |
Token |
extract(String response)
Extracts the request token from the contents of an Http Response |
TokenExtractorImpl
public TokenExtractorImpl()
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