Class BaseStringExtractorImpl

java.lang.Object
com.github.scribejava.core.extractors.BaseStringExtractorImpl
All Implemented Interfaces:
BaseStringExtractor

public class BaseStringExtractorImpl
extends java.lang.Object
implements BaseStringExtractor
Default implementation of BaseStringExtractor. Conforms to OAuth 1.0a https://tools.ietf.org/html/rfc5849#section-3.4.1.1
  • Field Details

    • AMPERSAND_SEPARATED_STRING

      protected static final java.lang.String AMPERSAND_SEPARATED_STRING
      See Also:
      Constant Field Values
  • Constructor Details

    • BaseStringExtractorImpl

      public BaseStringExtractorImpl()
  • Method Details

    • extract

      public java.lang.String extract​(OAuthRequest request)
      Extracts an url-encoded base string from the OAuthRequest. See the oauth spec for more info on this.
      Specified by:
      extract in interface BaseStringExtractor
      Parameters:
      request - the OAuthRequest
      Returns:
      the url-encoded base string
    • getVerb

      protected java.lang.String getVerb​(OAuthRequest request)
    • getUrl

      protected java.lang.String getUrl​(OAuthRequest request)
      https://tools.ietf.org/html/rfc5849#section-3.4.1.2
      Parameters:
      request - request
      Returns:
      url
    • getSortedAndEncodedParams

      protected java.lang.String getSortedAndEncodedParams​(OAuthRequest request)
    • checkPreconditions

      protected void checkPreconditions​(OAuthRequest request)