| Package | Description |
|---|---|
| org.gcube.oidc.rest |
| Modifier and Type | Method and Description |
|---|---|
static JWTToken |
JWTToken.fromString(String tokenString) |
protected static JWTToken |
OpenIdConnectRESTHelper.performQueryTokenWithPOST(URL tokenURL,
String authorization,
Map<String,List<String>> params) |
static JWTToken |
OpenIdConnectRESTHelper.queryClientToken(String clientId,
String clientSecret,
URL tokenURL)
Queries from the OIDC server an OIDC access token, by using provided clientId and client secret.
|
static JWTToken |
OpenIdConnectRESTHelper.queryToken(String clientId,
URL tokenURL,
String code,
String scope,
String redirectURI) |
static JWTToken |
OpenIdConnectRESTHelper.queryUMAToken(URL tokenUrl,
String authorization,
String audience,
List<String> permissions)
Queries from the OIDC server an UMA token, by using provided access token, for the given audience (context),
in URLEncoded form or not, and optionally a list of permissions.
|
static JWTToken |
OpenIdConnectRESTHelper.queryUMAToken(URL tokenUrl,
String clientId,
String clientSecret,
String audience,
List<String> permissions)
Queries from the OIDC server an UMA token, by using provided clientId and client secret for the given audience
(context), in URLEncoded form or not, and optionally a list of permissions.
|
static JWTToken |
OpenIdConnectRESTHelper.refreshToken(URL tokenURL,
JWTToken token)
Refreshes the token from the OIDC server.
|
static JWTToken |
OpenIdConnectRESTHelper.refreshToken(URL tokenURL,
String clientId,
JWTToken token)
Refreshes the token from the OIDC server for a specific client represented by the client id.
|
static JWTToken |
OpenIdConnectRESTHelper.refreshToken(URL tokenURL,
String clientId,
String clientSecret,
JWTToken token)
Refreshes the token from the OIDC server for a specific client represented by the client id.
|
| Modifier and Type | Method and Description |
|---|---|
protected static String |
OpenIdConnectRESTHelper.getClientIdFromToken(JWTToken token) |
static byte[] |
OpenIdConnectRESTHelper.getUserAvatar(URL avatarURL,
JWTToken token) |
static boolean |
OpenIdConnectRESTHelper.logout(URL logoutUrl,
JWTToken token)
Performs the logout (SSOut) from all the sessions opened in the OIDC server.
|
static boolean |
OpenIdConnectRESTHelper.logout(URL logoutUrl,
String clientId,
JWTToken token)
Performs the logout from the session related to the provided client id in the OIDC server.
|
static JWTToken |
OpenIdConnectRESTHelper.refreshToken(URL tokenURL,
JWTToken token)
Refreshes the token from the OIDC server.
|
static JWTToken |
OpenIdConnectRESTHelper.refreshToken(URL tokenURL,
String clientId,
JWTToken token)
Refreshes the token from the OIDC server for a specific client represented by the client id.
|
static JWTToken |
OpenIdConnectRESTHelper.refreshToken(URL tokenURL,
String clientId,
String clientSecret,
JWTToken token)
Refreshes the token from the OIDC server for a specific client represented by the client id.
|
Copyright © 2022. All Rights Reserved.