Package org.scribe.extractors
Class TokenExtractorImpl
- java.lang.Object
-
- org.scribe.extractors.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.
-
-
Constructor Summary
Constructors Constructor Description TokenExtractorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Token
extract(String response)
Extracts the request token from the contents of an Http Response
-
-
-
Method Detail
-
extract
public Token extract(String response)
Extracts the request token from the contents of an Http Response- Specified by:
extract
in interfaceAccessTokenExtractor
- Specified by:
extract
in interfaceRequestTokenExtractor
- Parameters:
response
- the contents of the response- Returns:
- OAuth access token
-
-