public class D4ScienceIAMClientAuthn4User extends D4ScienceIAMClientAuthn
| Modifier | Constructor and Description |
|---|---|
protected |
D4ScienceIAMClientAuthn4User(D4ScienceIAMClient iamClient,
String clientId,
String clientSecret,
String username,
String password)
Creates a new user authentication instance without context.
|
protected |
D4ScienceIAMClientAuthn4User(D4ScienceIAMClient iamClient,
String clientId,
String clientSecret,
String username,
String password,
String context)
Creates a new user authentication instance with context.
|
| Modifier and Type | Method and Description |
|---|---|
protected static org.gcube.common.keycloak.model.TokenResponse |
performUserAuthn(D4ScienceIAMClient iamClient,
String clientId,
String clientSecret,
String username,
String password,
String context)
Performs user authentication using username and password credentials.
|
authorize, authorizecanBeRefreshed, getAccessToken, getAccessTokenString, getContactOrganization, getContactPerson, getContextRoles, getGlobalRoles, getIamClient, getName, getRefreshTokenString, getResourceRoles, getRoles, getTokenResponse, isAccessTokenValid, isAccessTokenValid, isExpired, isRefreshTokenValid, isRefreshTokenValid, refresh, refresh, setIamClient, setTokenResponse, verifyAccessToken, verifyRefreshTokenprotected D4ScienceIAMClientAuthn4User(D4ScienceIAMClient iamClient, String clientId, String clientSecret, String username, String password) throws D4ScienceIAMClientException
iamClient - the IAM clientclientId - the client IDclientSecret - the client secretusername - the usernamepassword - the passwordD4ScienceIAMClientException - if authentication failsprotected D4ScienceIAMClientAuthn4User(D4ScienceIAMClient iamClient, String clientId, String clientSecret, String username, String password, String context) throws D4ScienceIAMClientException
iamClient - the IAM clientclientId - the client IDclientSecret - the client secretusername - the usernamepassword - the passwordcontext - the context (optional)D4ScienceIAMClientException - if authentication failsprotected static final org.gcube.common.keycloak.model.TokenResponse performUserAuthn(D4ScienceIAMClient iamClient, String clientId, String clientSecret, String username, String password, String context) throws D4ScienceIAMClientException
iamClient - the IAM clientclientId - the client IDclientSecret - the client secretusername - the usernamepassword - the passwordcontext - the context (optional)D4ScienceIAMClientException - if authentication failsCopyright © 2026. All rights reserved.