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 Object implements TokenExtractor<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractOAuth1JSONTokenExtractor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract T
createToken(String token, String secret, String response)
T
extract(Response response)
Extracts the concrete type of token from the contents of an Http Response
-
-
-
Method Detail
-
extract
public T extract(Response response) throws IOException
Description copied from interface:TokenExtractor
Extracts the concrete type of token from the contents of an Http Response- Specified by:
extract
in interfaceTokenExtractor<T extends OAuth1Token>
- Parameters:
response
- the whole response- Returns:
- OAuth access token
- Throws:
IOException
- in case of troubles while getting body from the response
-
-