Uses of Class
org.gcube.common.iam.D4ScienceIAMClientException
-
Uses of D4ScienceIAMClientException in org.gcube.common.iam
Methods in org.gcube.common.iam that throw D4ScienceIAMClientExceptionModifier and TypeMethodDescriptionD4ScienceIAMClient.authenticate(String clientId, String clientSecret) Authenticates the client with provided id and secretD4ScienceIAMClient.authenticate(String clientId, String clientSecret, String context) Authenticates the client with provided credentials, reducing the token audience to the requested `context`D4ScienceIAMClient.authenticateUser(String username, String password) Deprecated.this authn method is deprecated in the oauth2 specifications (see https://oauth.net/2/grant-types/password/)D4ScienceIAMClient.authenticateUser(String username, String password, String context) Deprecated.this authn method is deprecated in the oauth2 specifications (see https://oauth.net/2/grant-types/password/)D4ScienceIAMClient.authenticateUser(String clientId, String clientSecret, String username, String password) Deprecated.this authn method is deprecated in the oauth2 specifications (see https://oauth.net/2/grant-types/password/)D4ScienceIAMClient.authenticateUser(String clientId, String clientSecret, String username, String password, String context) Deprecated.this authn method is deprecated in the oauth2 specifications (see https://oauth.net/2/grant-types/password/)Directly authorizes the client by using the provided credentials, for the specific context audience and with no optional permissionsD4ScienceIAMClient.authorize(String clientId, String clientSecret, String context, List<String> permissions) Directly authorizes the client by using the provided credentials, for the specific context audience and with optional permissionsAuthorizes the client or the user by using the authn already obtained, for the specific context audience and no optional permissions.Authorizes the client or the user by using the authn already obtained, for the specific context audience and with optional permissions.booleanAbstractIAMResponse.canBeRefreshed()booleanIAMResponse.canBeRefreshed()Check if the current response can be refreshedorg.gcube.common.keycloak.model.AccessTokenAbstractIAMResponse.getAccessToken()org.gcube.common.keycloak.model.AccessTokenIAMResponse.getAccessToken()Returns the access token in the response.AbstractIAMResponse.getContactOrganization()IAMResponse.getContactOrganization()Returns the client's contact organization from the tokenAbstractIAMResponse.getContactPerson()IAMResponse.getContactPerson()Returns the client's contact person from the tokenAbstractIAMResponse.getContextRoles()IAMResponse.getContextRoles()Returns the resource roles for the resource specified in the token contextAbstractIAMResponse.getGlobalRoles()IAMResponse.getGlobalRoles()Returns the realm roles in the tokenAbstractIAMResponse.getName()IAMResponse.getName()Returns the client's name from the tokenAbstractIAMResponse.getResourceRoles(String resource) IAMResponse.getResourceRoles(String resource) Returns the resource roles for the resource specified in the resource parameterAbstractIAMResponse.getRoles()IAMResponse.getRoles()Returns all the roles, realm and from all the resources in the token in the same setbooleanAbstractIAMResponse.isAccessTokenValid()booleanAbstractIAMResponse.isAccessTokenValid(boolean checkExpiration) booleanIAMResponse.isAccessTokenValid()Quick way to check if the access token is valid by checking the digital signature and the token expirationbooleanIAMResponse.isAccessTokenValid(boolean checkExpiration) Quick way to check if the access token is valid by checking the digital signature and the token expiration if thecheckExpirationparameter istruebooleanAbstractIAMResponse.isExpired()booleanIAMResponse.isExpired()Check if the current response is expiredbooleanAbstractIAMResponse.isRefreshTokenValid()booleanAbstractIAMResponse.isRefreshTokenValid(boolean checkExpiration) booleanIAMResponse.isRefreshTokenValid()Quick way to check if the refresh token present in the current response and it is valid by checking the digital signature and the token expirationbooleanIAMResponse.isRefreshTokenValid(boolean checkExpiration) Quick way to check if the refresh token present in the current response and it is valid by checking the digital signature and the token expiration if thecheckExpirationparameter istruestatic D4ScienceIAMClientD4ScienceIAMClient.newInstance(String contextInfra) Creates a new client for the specific context, in the default IAM realm.static D4ScienceIAMClientD4ScienceIAMClient.newInstance(String contextInfra, String realm) Creates a new client for the specific context, in the default realm.protected static final org.gcube.common.keycloak.model.TokenResponseD4ScienceIAMClientAuthn4Client.performClientAuthn(D4ScienceIAMClient iamClient, String clientId, String clientSecret, String context) Performs the actual client authentication using client credentials flow.protected static final org.gcube.common.keycloak.model.TokenResponseD4ScienceIAMClientAuthn4User.performUserAuthn(D4ScienceIAMClient iamClient, String clientId, String clientSecret, String username, String password, String context) Performs user authentication using username and password credentials.voidAbstractIAMResponse.refresh()voidRefreshes the token using the specified client credentials.voidIAMResponse.refresh()Refreshes the current response, new data can be obtained again with accessors.voidAbstractIAMResponse.verifyAccessToken()voidIAMResponse.verifyAccessToken()Verifies the access token integrity and validity; token digital signature and expiration are reported via specific exceptions.voidAbstractIAMResponse.verifyRefreshToken()voidIAMResponse.verifyRefreshToken()Verifies the refresh token integrity and validity; token digital signature and expiration are reported via specific exceptions.Constructors in org.gcube.common.iam that throw D4ScienceIAMClientExceptionModifierConstructorDescriptionprotectedD4ScienceIAMClientAuthn4Client(D4ScienceIAMClient iamClient, String clientId, String clientSecret) Creates a new client authentication instance using client credentials.protectedD4ScienceIAMClientAuthn4Client(D4ScienceIAMClient iamClient, String clientId, String clientSecret, String context) Creates a new client authentication instance with specific context.protectedD4ScienceIAMClientAuthn4User(D4ScienceIAMClient iamClient, String clientId, String clientSecret, String username, String password) Creates a new user authentication instance without context.protectedD4ScienceIAMClientAuthn4User(D4ScienceIAMClient iamClient, String clientId, String clientSecret, String username, String password, String context) Creates a new user authentication instance with context.protectedD4ScienceIAMClientAuthz(D4ScienceIAMClientAuthn authn, String context, List<String> permissions) Creates a new authorization instance using an existing authentication.protectedD4ScienceIAMClientAuthz(D4ScienceIAMClient iamClient, String clientId, String clientSecret, String context, List<String> permissions) Creates a new authorization instance using client credentials.