Class OAuth2AccessTokenExtractor
java.lang.Object
com.github.scribejava.core.extractors.OAuth2AccessTokenExtractor
- All Implemented Interfaces:
TokenExtractor<OAuth2AccessToken>
public class OAuth2AccessTokenExtractor extends java.lang.Object implements TokenExtractor<OAuth2AccessToken>
Custom implementation of
TokenExtractor for OAuth 2.0-
Constructor Summary
Constructors Modifier Constructor Description protectedOAuth2AccessTokenExtractor() -
Method Summary
Modifier and Type Method Description OAuth2AccessTokenextract(Response response)Extracts the concrete type of token from the contents of an Http Responsestatic OAuth2AccessTokenExtractorinstance()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OAuth2AccessTokenExtractor
protected OAuth2AccessTokenExtractor()
-
-
Method Details
-
instance
-
extract
Extracts the concrete type of token from the contents of an Http Response- Specified by:
extractin interfaceTokenExtractor<OAuth2AccessToken>- Parameters:
response- the whole response- Returns:
- OAuth access token
- Throws:
java.io.IOException- in case of troubles while getting body from the response
-