Class AbstractOAuth1JSONTokenExtractor<T extends OAuth1Token>

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract T createToken​(java.lang.String token, java.lang.String secret, java.lang.String response)  
      T extract​(Response response)
      Extracts the concrete type of token from the contents of an Http Response
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractOAuth1JSONTokenExtractor

        public AbstractOAuth1JSONTokenExtractor()
    • Method Detail

      • extract

        public T extract​(Response response)
                  throws java.io.IOException
        Description copied from interface: TokenExtractor
        Extracts the concrete type of token from the contents of an Http Response
        Specified by:
        extract in interface TokenExtractor<T extends OAuth1Token>
        Parameters:
        response - the whole response
        Returns:
        OAuth access token
        Throws:
        java.io.IOException - in case of troubles while getting body from the response
      • createToken

        protected abstract T createToken​(java.lang.String token,
                                         java.lang.String secret,
                                         java.lang.String response)