java.lang.Object
it.pagopa.swclient.mil.azureservices.identity.bean.Scope

public class Scope extends Object

Scopes of access tokens.

Author:
Antonio Tarricone
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final Map<String,String>
    Mapping 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

    Constructors
    Modifier
    Constructor
    Description
    private
    This class contains static stuff only.
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    Maps the scope value required by System Managed Identity to value required by Workload Identity.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • VAULT

      public static final String VAULT

      Scope to get an access token to access to Key Vault APIs.

      See Also:
    • STORAGE

      public static final String STORAGE

      Scope to get an access token to access to Storage Account APIs.

      See Also:
    • VAULT_WORKLOAD_IDENTITY

      public static final String 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

      public static final String 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

      private static final Map<String,String> 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

      public static String getForWorkloadIdentity(String scope)

      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.