| Package | Description |
|---|---|
| org.gcube.common.keycloak | |
| org.gcube.common.keycloak.model |
| Modifier and Type | Method and Description |
|---|---|
protected TokenResponse |
DefaultKeycloakClient.performRequest(URL tokenURL,
String authorization,
Map<String,List<String>> params) |
TokenResponse |
DefaultKeycloakClient.queryOIDCToken(String clientId,
String clientSecret) |
TokenResponse |
KeycloakClient.queryOIDCToken(String clientId,
String clientSecret)
Queries an OIDC token from the Keycloak server discovered in the current scope, by using provided clientId and client secret.
|
TokenResponse |
DefaultKeycloakClient.queryOIDCToken(URL tokenURL,
String authorization) |
TokenResponse |
KeycloakClient.queryOIDCToken(URL tokenURL,
String authorization)
Queries an OIDC token from the Keycloak server, by using provided authorization.
|
TokenResponse |
DefaultKeycloakClient.queryOIDCToken(URL tokenURL,
String clientId,
String clientSecret) |
TokenResponse |
KeycloakClient.queryOIDCToken(URL tokenURL,
String clientId,
String clientSecret)
Queries an OIDC token from the Keycloak server, by using provided clientId and client secret.
|
TokenResponse |
DefaultKeycloakClient.queryUMAToken(String clientId,
String clientSecret,
List<String> permissions) |
TokenResponse |
KeycloakClient.queryUMAToken(String clientId,
String clientSecret,
List<String> permissions)
Queries an UMA token from the Keycloak server discovered in the current scope, by using provided clientId and client secret
for the current scope as audience (context), in URLEncoded form or not, and optionally a list of permissions.
|
TokenResponse |
DefaultKeycloakClient.queryUMAToken(String clientId,
String clientSecret,
String audience,
List<String> permissions) |
TokenResponse |
KeycloakClient.queryUMAToken(String clientId,
String clientSecret,
String audience,
List<String> permissions)
Queries an UMA token from the Keycloak server discovered in the current scope, by using provided clientId and client secret
for the given audience (context), in URLEncoded form or not, and optionally a list of permissions.
|
TokenResponse |
DefaultKeycloakClient.queryUMAToken(TokenResponse oidcTokenResponse,
String audience,
List<String> permissions) |
TokenResponse |
KeycloakClient.queryUMAToken(TokenResponse oidcTokenResponse,
String audience,
List<String> permissions)
Queries an UMA token from the Keycloak server discovered in the current scope, by using access-token provided by the
TokenResponse object
for the given audience (context), in URLEncoded form or not, and optionally a list of permissions. |
TokenResponse |
DefaultKeycloakClient.queryUMAToken(URL tokenURL,
String authorization,
String audience,
List<String> permissions) |
TokenResponse |
KeycloakClient.queryUMAToken(URL tokenURL,
String authorization,
String audience,
List<String> permissions)
Queries an UMA token from the Keycloak server, by using provided authorization, for the given audience (context),
in URLEncoded form or not, and optionally a list of permissions.
|
TokenResponse |
DefaultKeycloakClient.queryUMAToken(URL tokenURL,
String clientId,
String clientSecret,
String audience,
List<String> permissions) |
TokenResponse |
KeycloakClient.queryUMAToken(URL tokenURL,
String clientId,
String clientSecret,
String audience,
List<String> permissions)
Queries an UMA token from the Keycloak server, by using provided clientId and client secret for the given audience
(context), in URLEncoded form or not, and optionally a list of permissions.
|
TokenResponse |
DefaultKeycloakClient.queryUMAToken(URL tokenURL,
TokenResponse oidcTokenResponse,
String audience,
List<String> permissions) |
TokenResponse |
KeycloakClient.queryUMAToken(URL tokenURL,
TokenResponse oidcTokenResponse,
String audience,
List<String> permissions)
Queries an UMA token from the Keycloak server, by using access-token provided by the
TokenResponse object
for the given audience (context), in URLEncoded form or not, and optionally a list of permissions. |
TokenResponse |
DefaultKeycloakClient.refreshToken(String refreshTokenJWTString) |
TokenResponse |
KeycloakClient.refreshToken(String refreshTokenJWTString)
Refreshes a previously issued token from the Keycloak server discovered in the current scope using the the refresh token JWT encoded string obtained with the access token in the previous token response.
|
TokenResponse |
DefaultKeycloakClient.refreshToken(String clientId,
String refreshTokenJWTString) |
TokenResponse |
KeycloakClient.refreshToken(String clientId,
String refreshTokenJWTString)
Refreshes a previously issued token from the Keycloak server discovered in the current scope using the provided
client id and the refresh token JWT encoded string obtained with the access token in the previous token response.
|
TokenResponse |
DefaultKeycloakClient.refreshToken(String clientId,
String clientSecret,
String refreshTokenJWTString) |
TokenResponse |
KeycloakClient.refreshToken(String clientId,
String clientSecret,
String refreshTokenJWTString)
Refreshes a previously issued token from the Keycloak server discovered in the current scope using the provided
client id and secret and the refresh token JWT encoded string obtained with the access token in the previous
token response.
|
TokenResponse |
DefaultKeycloakClient.refreshToken(String clientId,
String clientSecret,
TokenResponse tokenResponse) |
TokenResponse |
KeycloakClient.refreshToken(String clientId,
String clientSecret,
TokenResponse tokenResponse)
Refreshes a previously issued token from the Keycloak server discovered in the current scope using the refresh
token JWT encoded string in the token response object and the provided client id and secret.
|
TokenResponse |
DefaultKeycloakClient.refreshToken(String clientId,
TokenResponse tokenResponse) |
TokenResponse |
KeycloakClient.refreshToken(String clientId,
TokenResponse tokenResponse)
Refreshes a previously issued token from the Keycloak server discovered in the current scope using the refresh
token JWT encoded string in the token response object and the provided client id.
|
TokenResponse |
DefaultKeycloakClient.refreshToken(TokenResponse tokenResponse) |
TokenResponse |
KeycloakClient.refreshToken(TokenResponse tokenResponse)
Refreshes a previously issued token from the Keycloak server discovered in the current scope using the refresh
token JWT encoded string in the token response object.
|
TokenResponse |
DefaultKeycloakClient.refreshToken(URL tokenURL,
String clientId,
String clientSecret,
String refreshTokenJWTString) |
TokenResponse |
KeycloakClient.refreshToken(URL tokenURL,
String clientId,
String clientSecret,
String refreshTokenJWTString)
Refreshes a previously issued token from the Keycloak server by using the client id and secret
and the refresh token JWT encoded string obtained with the access token in the previous token response.
|
TokenResponse |
DefaultKeycloakClient.refreshToken(URL tokenURL,
String clientId,
String clientSecret,
TokenResponse tokenResponse) |
TokenResponse |
KeycloakClient.refreshToken(URL tokenURL,
String clientId,
String clientSecret,
TokenResponse tokenResponse)
Refreshes a previously issued token from the Keycloak server using the refresh token JWT encoded string in the
token response object and the provided client id and secret.
|
TokenResponse |
DefaultKeycloakClient.refreshToken(URL tokenURL,
TokenResponse tokenResponse) |
TokenResponse |
KeycloakClient.refreshToken(URL tokenURL,
TokenResponse tokenResponse)
Refreshes a previously issued token from the Keycloak server using the refresh token JWT encoded string in the
token response object.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
DefaultKeycloakClient.constructBeareAuthenticationHeader(TokenResponse oidcTokenResponse) |
TokenResponse |
DefaultKeycloakClient.queryUMAToken(TokenResponse oidcTokenResponse,
String audience,
List<String> permissions) |
TokenResponse |
KeycloakClient.queryUMAToken(TokenResponse oidcTokenResponse,
String audience,
List<String> permissions)
Queries an UMA token from the Keycloak server discovered in the current scope, by using access-token provided by the
TokenResponse object
for the given audience (context), in URLEncoded form or not, and optionally a list of permissions. |
TokenResponse |
DefaultKeycloakClient.queryUMAToken(URL tokenURL,
TokenResponse oidcTokenResponse,
String audience,
List<String> permissions) |
TokenResponse |
KeycloakClient.queryUMAToken(URL tokenURL,
TokenResponse oidcTokenResponse,
String audience,
List<String> permissions)
Queries an UMA token from the Keycloak server, by using access-token provided by the
TokenResponse object
for the given audience (context), in URLEncoded form or not, and optionally a list of permissions. |
TokenResponse |
DefaultKeycloakClient.refreshToken(String clientId,
String clientSecret,
TokenResponse tokenResponse) |
TokenResponse |
KeycloakClient.refreshToken(String clientId,
String clientSecret,
TokenResponse tokenResponse)
Refreshes a previously issued token from the Keycloak server discovered in the current scope using the refresh
token JWT encoded string in the token response object and the provided client id and secret.
|
TokenResponse |
DefaultKeycloakClient.refreshToken(String clientId,
TokenResponse tokenResponse) |
TokenResponse |
KeycloakClient.refreshToken(String clientId,
TokenResponse tokenResponse)
Refreshes a previously issued token from the Keycloak server discovered in the current scope using the refresh
token JWT encoded string in the token response object and the provided client id.
|
TokenResponse |
DefaultKeycloakClient.refreshToken(TokenResponse tokenResponse) |
TokenResponse |
KeycloakClient.refreshToken(TokenResponse tokenResponse)
Refreshes a previously issued token from the Keycloak server discovered in the current scope using the refresh
token JWT encoded string in the token response object.
|
TokenResponse |
DefaultKeycloakClient.refreshToken(URL tokenURL,
String clientId,
String clientSecret,
TokenResponse tokenResponse) |
TokenResponse |
KeycloakClient.refreshToken(URL tokenURL,
String clientId,
String clientSecret,
TokenResponse tokenResponse)
Refreshes a previously issued token from the Keycloak server using the refresh token JWT encoded string in the
token response object and the provided client id and secret.
|
TokenResponse |
DefaultKeycloakClient.refreshToken(URL tokenURL,
TokenResponse tokenResponse) |
TokenResponse |
KeycloakClient.refreshToken(URL tokenURL,
TokenResponse tokenResponse)
Refreshes a previously issued token from the Keycloak server using the refresh token JWT encoded string in the
token response object.
|
| Modifier and Type | Method and Description |
|---|---|
static AccessToken |
ModelUtils.getAccessTokenFrom(TokenResponse tokenResponse) |
static String |
ModelUtils.getAccessTokenPayloadJSONStringFrom(TokenResponse tokenResponse) |
static String |
ModelUtils.getAccessTokenPayloadJSONStringFrom(TokenResponse tokenResponse,
boolean prettyPrint) |
static RefreshToken |
ModelUtils.getRefreshTokenFrom(TokenResponse tokenResponse) |
static String |
ModelUtils.getRefreshTokenPayloadStringFrom(TokenResponse tokenResponse) |
static String |
ModelUtils.getRefreshTokenPayloadStringFrom(TokenResponse tokenResponse,
boolean prettyPrint) |
Copyright © 2022. All Rights Reserved.