Class Scope
java.lang.Object
it.pagopa.swclient.mil.azureservices.identity.bean.Scope
Scopes of access tokens.
- Author:
- Antonio Tarricone
-
Field Summary
Modifier and TypeFieldDescriptionMapping between scope values required by System Managed Identity and value required by Workload Identity.static final String
Scope to get an access token to access to Storage Account APIs.static final String
Scope to get an access token to access to Storage Account APIs by means of Workload Identity.static final String
Scope to get an access token to access to Key Vault APIs.static final String
Scope to get an access token to access to Key Vault APIs by means of Workload Identity. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getForWorkloadIdentity
(String scope) Maps the scope value required by System Managed Identity to value required by Workload Identity.
-
Field Details
-
VAULT
Scope to get an access token to access to Key Vault APIs.
- See Also:
-
STORAGE
Scope to get an access token to access to Storage Account APIs.
- See Also:
-
VAULT_WORKLOAD_IDENTITY
Scope to get an access token to access to Key Vault APIs by means of Workload Identity.
- See Also:
-
STORAGE_WORKLOAD_IDENTITY
Scope to get an access token to access to Storage Account APIs by means of Workload Identity.
- See Also:
-
FOR_WORKLOAD_IDENTITY
Mapping between scope values required by System Managed Identity and value required by Workload Identity.
-
-
Constructor Details
-
Scope
private Scope()This class contains static stuff only.
-
-
Method Details
-
getForWorkloadIdentity
Maps the scope value required by System Managed Identity to value required by Workload Identity.
- Parameters:
scope
- Scope to be mapped to value required by Workload Identity.- Returns:
- Value required by Workload Identity.
-