Interface TokenExtractor<T extends Token>

Type Parameters:
T - concrete type of Token
All Known Implementing Classes:
AbstractOAuth1JSONTokenExtractor, AbstractOAuth1TokenExtractor, OAuth1AccessTokenExtractor, OAuth1AccessTokenJSONExtractor, OAuth1RequestTokenExtractor, OAuth1RequestTokenJSONExtractor, OAuth2AccessTokenExtractor, OAuth2AccessTokenJsonExtractor

public interface TokenExtractor<T extends Token>
Simple command object that extracts a concrete Token from a String
  • Method Summary

    Modifier and Type
    Method
    Description
    extract(Response response)
    Extracts the concrete type of token from the contents of an Http Response
  • Method Details

    • extract

      T extract(Response response) throws IOException, OAuthException
      Extracts the concrete type of token from the contents of an Http Response
      Parameters:
      response - the whole response
      Returns:
      OAuth access token
      Throws:
      IOException - in case of troubles while getting body from the response
      OAuthException