Package org.scribe.extractors
Class TokenExtractorImpl
- java.lang.Object
-
- org.scribe.extractors.TokenExtractorImpl
-
- All Implemented Interfaces:
AccessTokenExtractor,RequestTokenExtractor
public class TokenExtractorImpl extends java.lang.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 Tokenextract(java.lang.String response)Extracts the request token from the contents of an Http Response
-
-
-
Method Detail
-
extract
public Token extract(java.lang.String response)
Extracts the request token from the contents of an Http Response- Specified by:
extractin interfaceAccessTokenExtractor- Specified by:
extractin interfaceRequestTokenExtractor- Parameters:
response- the contents of the response- Returns:
- OAuth access token
-
-