Class AzureCredentials

java.lang.Object
com.cloudbees.plugins.credentials.BaseCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.microsoft.azure.util.AzureBaseCredentials
com.microsoft.azure.util.AzureCredentials
All Implemented Interfaces:
com.cloudbees.plugins.credentials.common.IdCredentials, com.cloudbees.plugins.credentials.common.StandardCredentials, com.cloudbees.plugins.credentials.Credentials, ExtensionPoint, Describable<com.cloudbees.plugins.credentials.Credentials>, Serializable

public class AzureCredentials extends AzureBaseCredentials
See Also:
  • Constructor Details

    • AzureCredentials

      @Deprecated public AzureCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String subscriptionId, String clientId, String clientSecret)
      Deprecated.
    • AzureCredentials

      @DataBoundConstructor public AzureCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String subscriptionId, String clientId, Secret clientSecret)
    • AzureCredentials

      @Deprecated public AzureCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String subscriptionId, String clientId, String clientSecret, String oauth2TokenEndpoint, String serviceManagementURL, String authenticationEndpoint, String resourceManagerEndpoint, String graphEndpoint)
      Deprecated.
      Leave for backward compatibility.
  • Method Details

    • getServicePrincipal

      @Deprecated public static AzureCredentials.ServicePrincipal getServicePrincipal(String credentialsId)
      Deprecated.
    • createKeyVaultClient

      public static com.azure.security.keyvault.secrets.SecretClient createKeyVaultClient(com.azure.core.credential.TokenCredential credential, String keyVaultUrl)
    • getSystemCredentialById

      public static com.azure.core.credential.TokenCredential getSystemCredentialById(String credentialID)
      Only checks the system provider for credentials. Use if you need to bypass other providers, e.g. in a credential provider.
    • getTokenCredential

      public static com.azure.core.credential.TokenCredential getTokenCredential(AzureBaseCredentials credentials)
    • getCredentialById

      public static com.azure.core.credential.TokenCredential getCredentialById(Item owner, String credentialId)
    • getSubscriptionId

      public String getSubscriptionId()
      Specified by:
      getSubscriptionId in class AzureBaseCredentials
    • getClientId

      public String getClientId()
    • getClientSecret

      public Secret getClientSecret()
    • getPlainClientSecret

      public String getPlainClientSecret()
    • setCertificateId

      @DataBoundSetter public void setCertificateId(String certificateId)
    • getCertificateId

      public String getCertificateId()
    • getTenant

      public String getTenant()
    • setTenant

      @DataBoundSetter public void setTenant(String tenant)
    • getOauth2TokenEndpoint

      @Deprecated public String getOauth2TokenEndpoint()
      Deprecated.
      use tenant related methods instead.
      For backward compatibility.
    • setOauth2TokenEndpoint

      @DataBoundSetter @Deprecated public void setOauth2TokenEndpoint(String oauth2TokenEndpoint)
      Deprecated.
      use tenant related methods instead.
      Set the Oauth2 token endpoint for backward compatibility only.
      Parameters:
      oauth2TokenEndpoint - the endpoint value in the form "https://login.windows.net/<TenantId>"
    • getAzureEnvionmentName

      @Deprecated public String getAzureEnvionmentName()
      Deprecated.
      typo.
    • getAzureEnvironmentName

      public String getAzureEnvironmentName()
      Specified by:
      getAzureEnvironmentName in class AzureBaseCredentials
    • setAzureEnvironmentName

      @DataBoundSetter public void setAzureEnvironmentName(String azureEnvironmentName)
    • getServiceManagementURL

      @Deprecated public String getServiceManagementURL()
      Deprecated.
    • getManagementEndpoint

      public String getManagementEndpoint()
      Specified by:
      getManagementEndpoint in class AzureBaseCredentials
    • setServiceManagementURL

      @DataBoundSetter @Deprecated public void setServiceManagementURL(String serviceManagementURL)
    • setManagementEndpoint

      @DataBoundSetter public void setManagementEndpoint(String managementEndpoint)
    • getAuthenticationEndpoint

      @Deprecated public String getAuthenticationEndpoint()
    • getActiveDirectoryEndpoint

      public String getActiveDirectoryEndpoint()
      Specified by:
      getActiveDirectoryEndpoint in class AzureBaseCredentials
    • setAuthenticationEndpoint

      @DataBoundSetter @Deprecated public void setAuthenticationEndpoint(String authenticationEndpoint)
    • setActiveDirectoryEndpoint

      @DataBoundSetter public void setActiveDirectoryEndpoint(String activeDirectoryEndpoint)
    • getResourceManagerEndpoint

      public String getResourceManagerEndpoint()
      Specified by:
      getResourceManagerEndpoint in class AzureBaseCredentials
    • setResourceManagerEndpoint

      @DataBoundSetter public void setResourceManagerEndpoint(String resourceManagerEndpoint)
    • getAzureEnvironment

      public com.azure.core.management.AzureEnvironment getAzureEnvironment()
      Specified by:
      getAzureEnvironment in class AzureBaseCredentials
    • getGraphEndpoint

      public String getGraphEndpoint()
      Specified by:
      getGraphEndpoint in class AzureBaseCredentials
    • setGraphEndpoint

      @DataBoundSetter public void setGraphEndpoint(String graphEndpoint)