public class CommonUtils extends Object
| Constructor and Description |
|---|
CommonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getIdpUrl() |
static void |
getToken(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static boolean |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static String |
readFromError(HttpURLConnection urlConnection) |
static String |
readFromResponse(URLConnection urlConnection) |
static org.json.JSONObject |
requestToJson(org.apache.oltu.oauth2.client.request.OAuthClientRequest accessRequest) |
static org.json.JSONObject |
responseToJson(org.apache.oltu.oauth2.client.response.OAuthClientResponse oAuthResponse) |
public static org.json.JSONObject requestToJson(org.apache.oltu.oauth2.client.request.OAuthClientRequest accessRequest)
public static org.json.JSONObject responseToJson(org.apache.oltu.oauth2.client.response.OAuthClientResponse oAuthResponse)
public static boolean logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public static void getToken(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws org.apache.oltu.oauth2.common.exception.OAuthProblemException,
org.apache.oltu.oauth2.common.exception.OAuthSystemException,
SampleAppServerException
org.apache.oltu.oauth2.common.exception.OAuthProblemExceptionorg.apache.oltu.oauth2.common.exception.OAuthSystemExceptionSampleAppServerExceptionpublic static String getIdpUrl()
public static String readFromResponse(URLConnection urlConnection) throws IOException
IOExceptionpublic static String readFromError(HttpURLConnection urlConnection) throws IOException
IOExceptionCopyright © 2021 WSO2. All rights reserved.