public abstract class D4ScienceIAMClientAuthn extends AbstractIAMResponse
| Constructor and Description |
|---|
D4ScienceIAMClientAuthn(D4ScienceIAMClient iamClient,
org.gcube.common.keycloak.model.TokenResponse tokenResponse)
Creates a new authentication response.
|
| Modifier and Type | Method and Description |
|---|---|
D4ScienceIAMClientAuthz |
authorize(String context)
Authorizes the client or the user by using the authn already obtained, for the specific context audience and no optional permissions.
|
D4ScienceIAMClientAuthz |
authorize(String context,
List<String> permissions)
Authorizes the client or the user by using the authn already obtained, for the specific context audience and with optional permissions.
|
canBeRefreshed, getAccessToken, getAccessTokenString, getContactOrganization, getContactPerson, getContextRoles, getGlobalRoles, getIamClient, getName, getRefreshTokenString, getResourceRoles, getRoles, getTokenResponse, isAccessTokenValid, isAccessTokenValid, isExpired, isRefreshTokenValid, isRefreshTokenValid, refresh, refresh, setIamClient, setTokenResponse, verifyAccessToken, verifyRefreshTokenpublic D4ScienceIAMClientAuthn(D4ScienceIAMClient iamClient, org.gcube.common.keycloak.model.TokenResponse tokenResponse)
iamClient - the D4Science IAM client instancetokenResponse - the token response from authenticationpublic D4ScienceIAMClientAuthz authorize(String context) throws D4ScienceIAMClientException
context - the requested token context audience (e.g. a specific context or another client)D4ScienceIAMClientException - if an error occurs during authz processpublic D4ScienceIAMClientAuthz authorize(String context, List<String> permissions) throws D4ScienceIAMClientException
context - the requested token context audience (e.g. a specific context or another client)permissions - the optional permissionsD4ScienceIAMClientException - if an error occurs during authz processCopyright © 2025. All rights reserved.