public class OAuth2AccessTokenExtractor extends Object implements TokenExtractor<OAuth2AccessToken>
TokenExtractor for OAuth 2.0| Modifier | Constructor and Description |
|---|---|
protected |
OAuth2AccessTokenExtractor() |
| Modifier and Type | Method and Description |
|---|---|
OAuth2AccessToken |
extract(Response response)
Extracts the concrete type of token from the contents of an Http Response
|
static OAuth2AccessTokenExtractor |
instance() |
public static OAuth2AccessTokenExtractor instance()
public OAuth2AccessToken extract(Response response) throws IOException
extract in interface TokenExtractor<OAuth2AccessToken>response - the whole responseIOException - in case of troubles while getting body from the responseCopyright © 2017. All rights reserved.