public class OpenIdConnectRESTHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
OpenIdConnectRESTHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildLoginRequestURL(URL loginURL,
String clientId,
String state,
String redirectURI) |
protected static String |
getClientIdFromToken(JWTToken token) |
static boolean |
logout(URL logoutUrl,
JWTToken token) |
static boolean |
logout(URL logoutUrl,
String clientId,
JWTToken token) |
static String |
mapToQueryString(Map<String,List<String>> params) |
static JWTToken |
performQueryTokenWithPOST(URL tokenURL,
String authorization,
Map<String,List<String>> params) |
protected static HttpURLConnection |
performURLEncodedPOSTSendData(URL tokenURL,
Map<String,List<String>> params,
String authorization) |
static JWTToken |
queryClientToken(String clientId,
String clientSecret,
URL tokenURL) |
static JWTToken |
queryToken(String clientId,
URL tokenURL,
String code,
String scope,
String redirectURI) |
static JWTToken |
queryUMAToken(URL tokenUrl,
String authorizationToken,
String audience,
List<String> permissions) |
static JWTToken |
refreshToken(URL tokenURL,
JWTToken token) |
static JWTToken |
refreshToken(URL tokenURL,
String clientId,
JWTToken token) |
static JWTToken |
refreshToken(URL tokenURL,
String clientId,
String clientSecret,
JWTToken token) |
public static String buildLoginRequestURL(URL loginURL, String clientId, String state, String redirectURI) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static JWTToken queryClientToken(String clientId, String clientSecret, URL tokenURL) throws Exception
Exceptionpublic static JWTToken queryToken(String clientId, URL tokenURL, String code, String scope, String redirectURI) throws Exception
Exceptionpublic static JWTToken performQueryTokenWithPOST(URL tokenURL, String authorization, Map<String,List<String>> params) throws Exception
Exceptionprotected static HttpURLConnection performURLEncodedPOSTSendData(URL tokenURL, Map<String,List<String>> params, String authorization) throws IOException, ProtocolException, UnsupportedEncodingException
public static JWTToken queryUMAToken(URL tokenUrl, String authorizationToken, String audience, List<String> permissions) throws Exception
Exceptionpublic static JWTToken refreshToken(URL tokenURL, JWTToken token) throws Exception
Exceptionpublic static JWTToken refreshToken(URL tokenURL, String clientId, JWTToken token) throws Exception
Exceptionpublic static JWTToken refreshToken(URL tokenURL, String clientId, String clientSecret, JWTToken token) throws Exception
Exceptionpublic static boolean logout(URL logoutUrl, JWTToken token) throws IOException
IOExceptionpublic static boolean logout(URL logoutUrl, String clientId, JWTToken token) throws IOException
IOExceptionCopyright © 2020. All Rights Reserved.