public class OIDCBearerAuth extends AbstractIAMResponse
| Modifier | Constructor and Description |
|---|---|
protected |
OIDCBearerAuth(D4ScienceIAMClient iamClient,
org.gcube.common.keycloak.model.TokenResponse tokenResponse)
Creates a new OIDC bearer authentication instance.
|
| Modifier and Type | Method and Description |
|---|---|
static OIDCBearerAuth |
fromAccessTokenString(String accessToken)
Constructs a new object from an OIDC base64 encoded access-token string.
|
static OIDCBearerAuth |
fromAuthorizationHeader(String authorizationHeader)
Constructs a new object from an HTTP authorization header containing the bearer token with an OIDC access-token.
|
static OIDCBearerAuth |
fromBearerAuthorization(String bearerAuthorization)
Constructs a new object from a bearer token with an OIDC access-token.
|
canBeRefreshed, getAccessToken, getAccessTokenString, getContactOrganization, getContactPerson, getContextRoles, getGlobalRoles, getIamClient, getName, getRefreshTokenString, getResourceRoles, getRoles, getTokenResponse, isAccessTokenValid, isAccessTokenValid, isExpired, isRefreshTokenValid, isRefreshTokenValid, refresh, refresh, setIamClient, setTokenResponse, verifyAccessToken, verifyRefreshTokenprotected OIDCBearerAuth(D4ScienceIAMClient iamClient, org.gcube.common.keycloak.model.TokenResponse tokenResponse)
iamClient - the IAM clienttokenResponse - the token responsepublic static OIDCBearerAuth fromAuthorizationHeader(String authorizationHeader)
authorizationHeader - the HTTP authorization headerpublic static OIDCBearerAuth fromBearerAuthorization(String bearerAuthorization)
bearerAuthorization - the bearer token (with or without 'bearer ' prefixpublic static OIDCBearerAuth fromAccessTokenString(String accessToken)
accessToken - the OIDC base64 encoded access-token stringCopyright © 2025. All rights reserved.