Class AbstractOAuth1JSONTokenExtractor<T extends OAuth1Token>
java.lang.Object
com.github.scribejava.core.extractors.AbstractOAuth1JSONTokenExtractor<T>
- All Implemented Interfaces:
TokenExtractor<T>
- Direct Known Subclasses:
OAuth1AccessTokenJSONExtractor,OAuth1RequestTokenJSONExtractor
public abstract class AbstractOAuth1JSONTokenExtractor<T extends OAuth1Token> extends java.lang.Object implements TokenExtractor<T>
-
Constructor Summary
Constructors Constructor Description AbstractOAuth1JSONTokenExtractor() -
Method Summary
Modifier and Type Method Description protected abstract TcreateToken(java.lang.String token, java.lang.String secret, java.lang.String response)Textract(Response response)Extracts the concrete type of token from the contents of an Http Response
-
Constructor Details
-
AbstractOAuth1JSONTokenExtractor
public AbstractOAuth1JSONTokenExtractor()
-
-
Method Details
-
extract
Description copied from interface:TokenExtractorExtracts the concrete type of token from the contents of an Http Response- Specified by:
extractin interfaceTokenExtractor<T extends OAuth1Token>- Parameters:
response- the whole response- Returns:
- OAuth access token
- Throws:
java.io.IOException- in case of troubles while getting body from the response
-
createToken
protected abstract T createToken(java.lang.String token, java.lang.String secret, java.lang.String response)
-