Class OAuth2AccessTokenExtractor
java.lang.Object
com.github.scribejava.core.extractors.OAuth2AccessTokenExtractor
- All Implemented Interfaces:
TokenExtractor<OAuth2AccessToken>
Custom implementation of
TokenExtractor for OAuth 2.0-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExtracts the concrete type of token from the contents of an Http Responsestatic OAuth2AccessTokenExtractorinstance()
-
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:
IOException- in case of troubles while getting body from the response
-