public class CoreOAuthProviderSupport extends Object implements OAuthProviderSupport
Constructor and Description |
---|
CoreOAuthProviderSupport() |
Modifier and Type | Method and Description |
---|---|
String |
getBaseUrl()
The configured base URL for this OAuth provider.
|
protected String |
getBaseUrl(javax.servlet.http.HttpServletRequest request)
The configured base URL for this OAuth provider for the given HttpServletRequest.
|
String |
getSignatureBaseString(javax.servlet.http.HttpServletRequest request)
Get the signature base string for the specified request, per OAuth Core 1.0, 9.1
|
protected Set<String> |
getSupportedOAuthParameters()
Get the supported OAuth parameters.
|
protected SortedMap<String,SortedSet<String>> |
loadSignificantParametersForSignatureBaseString(javax.servlet.http.HttpServletRequest request)
Loads the significant parameters (name-to-value map) that are to be used to calculate the signature base string.
|
protected String |
normalizeUrl(String url)
Normalize the URL for use in the signature.
|
protected Map<String,String> |
parseHeaderParameters(javax.servlet.http.HttpServletRequest request)
Parse the OAuth header parameters.
|
Map<String,String> |
parseParameters(javax.servlet.http.HttpServletRequest request)
Parse the oauth consumer paramters from an HttpServletRequest.
|
void |
setBaseUrl(String baseUrl)
The configured base URL for the OAuth provider.
|
public Map<String,String> parseParameters(javax.servlet.http.HttpServletRequest request)
OAuthProviderSupport
parseParameters
in interface OAuthProviderSupport
request
- The servlet request.protected Map<String,String> parseHeaderParameters(javax.servlet.http.HttpServletRequest request)
request
- The request.protected Set<String> getSupportedOAuthParameters()
public String getSignatureBaseString(javax.servlet.http.HttpServletRequest request)
OAuthProviderSupport
getSignatureBaseString
in interface OAuthProviderSupport
request
- The request.protected String normalizeUrl(String url)
url
- The URL.protected SortedMap<String,SortedSet<String>> loadSignificantParametersForSignatureBaseString(javax.servlet.http.HttpServletRequest request)
request
- The request.protected String getBaseUrl(javax.servlet.http.HttpServletRequest request)
request
- The HttpServletRequest currently processedpublic String getBaseUrl()
public void setBaseUrl(String baseUrl)
baseUrl
- The configured base URL for the OAuth provider.Copyright © 2019. All rights reserved.