public final class OAuthUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
REPORT_FAILURE_DETAILS |
static String |
REPORT_FAILURE_DETAILS_AS_HEADER |
Modifier and Type | Method and Description |
---|---|
static void |
addParametersIfNeeded(MessageContext mc,
javax.servlet.http.HttpServletRequest request,
net.oauth.OAuthMessage oAuthMessage) |
static boolean |
checkRequestURI(String servletPath,
String uri) |
static OAuthDataProvider |
getOAuthDataProvider(OAuthDataProvider provider,
javax.servlet.ServletContext servletContext) |
static OAuthDataProvider |
getOAuthDataProvider(javax.servlet.ServletContext servletContext) |
static net.oauth.OAuthMessage |
getOAuthMessage(MessageContext mc,
javax.servlet.http.HttpServletRequest request,
String[] requiredParams) |
static net.oauth.OAuthValidator |
getOAuthValidator(javax.servlet.ServletContext servletContext) |
static javax.ws.rs.core.Response |
handleException(MessageContext mc,
Exception e,
int status) |
static RequestToken |
handleTokenRejectedException() |
static Object |
instantiateClass(String className) |
static List<String> |
parseParamValue(String paramValue,
String defaultValue) |
static void |
validateMessage(net.oauth.OAuthMessage oAuthMessage,
Client client,
Token token,
OAuthDataProvider provider,
net.oauth.OAuthValidator validator) |
public static final String REPORT_FAILURE_DETAILS
public static final String REPORT_FAILURE_DETAILS_AS_HEADER
public static void validateMessage(net.oauth.OAuthMessage oAuthMessage, Client client, Token token, OAuthDataProvider provider, net.oauth.OAuthValidator validator) throws Exception
Exception
public static net.oauth.OAuthMessage getOAuthMessage(MessageContext mc, javax.servlet.http.HttpServletRequest request, String[] requiredParams) throws Exception
Exception
public static void addParametersIfNeeded(MessageContext mc, javax.servlet.http.HttpServletRequest request, net.oauth.OAuthMessage oAuthMessage) throws IOException
IOException
public static javax.ws.rs.core.Response handleException(MessageContext mc, Exception e, int status)
public static List<String> parseParamValue(String paramValue, String defaultValue) throws IOException
IOException
public static RequestToken handleTokenRejectedException() throws net.oauth.OAuthProblemException
net.oauth.OAuthProblemException
public static Object instantiateClass(String className) throws Exception
Exception
public static OAuthDataProvider getOAuthDataProvider(OAuthDataProvider provider, javax.servlet.ServletContext servletContext)
public static OAuthDataProvider getOAuthDataProvider(javax.servlet.ServletContext servletContext)
public static net.oauth.OAuthValidator getOAuthValidator(javax.servlet.ServletContext servletContext)
Apache CXF