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 Summary
Fields Modifier and Type Field Description protected static java.lang.StringAMPERSAND_SEPARATED_STRING -
Constructor Summary
Constructors Constructor Description BaseStringExtractorImpl() -
Method Summary
Modifier and Type Method Description protected voidcheckPreconditions(OAuthRequest request)java.lang.Stringextract(OAuthRequest request)Extracts an url-encoded base string from theOAuthRequest.protected java.lang.StringgetSortedAndEncodedParams(OAuthRequest request)protected java.lang.StringgetUrl(OAuthRequest request)https://tools.ietf.org/html/rfc5849#section-3.4.1.2protected java.lang.StringgetVerb(OAuthRequest request)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
Extracts an url-encoded base string from theOAuthRequest. See the oauth spec for more info on this.- Specified by:
extractin interfaceBaseStringExtractor- Parameters:
request- the OAuthRequest- Returns:
- the url-encoded base string
-
getVerb
-
getUrl
https://tools.ietf.org/html/rfc5849#section-3.4.1.2- Parameters:
request- request- Returns:
- url
-
getSortedAndEncodedParams
-
checkPreconditions
-