Package com.microsoft.azure.util
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
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentialscom.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentialscom.cloudbees.plugins.credentials.common.IdCredentials.HelpersNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentialscom.cloudbees.plugins.credentials.common.StandardCredentials.NameProvider
- 
Constructor SummaryConstructorsConstructorDescriptionAzureCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String subscriptionId, String clientId, Secret clientSecret) AzureCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String subscriptionId, String clientId, String clientSecret) Deprecated.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 SummaryModifier and TypeMethodDescriptionstatic com.azure.security.keyvault.secrets.SecretClientcreateKeyVaultClient(com.azure.core.credential.TokenCredential credential, String keyVaultUrl) Deprecated.Deprecated.com.azure.core.management.AzureEnvironmentstatic com.azure.core.credential.TokenCredentialgetCredentialById(Item owner, String credentialId) Deprecated.use tenant related methods instead.Deprecated.getServicePrincipal(String credentialsId) Deprecated.static com.azure.core.credential.TokenCredentialgetSystemCredentialById(String credentialID) Only checks the system provider for credentials.static com.azure.core.credential.TokenCredentialgetTokenCredential(AzureBaseCredentials credentials) voidsetActiveDirectoryEndpoint(String activeDirectoryEndpoint) voidsetAuthenticationEndpoint(String authenticationEndpoint) Deprecated.voidsetAzureEnvironmentName(String azureEnvironmentName) voidsetCertificateId(String certificateId) voidsetGraphEndpoint(String graphEndpoint) voidsetManagementEndpoint(String managementEndpoint) voidsetOauth2TokenEndpoint(String oauth2TokenEndpoint) Deprecated.use tenant related methods instead.voidsetResourceManagerEndpoint(String resourceManagerEndpoint) voidsetServiceManagementURL(String serviceManagementURL) Deprecated.voidMethods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentialsequals, getDescription, getId, hashCodeMethods inherited from class com.cloudbees.plugins.credentials.BaseCredentialsgetDescriptor, getScopeMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.plugins.credentials.CredentialsforRun, getDescriptor, getScope
- 
Constructor Details- 
AzureCredentials@Deprecated public AzureCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String subscriptionId, String clientId, String clientSecret) Deprecated.
- 
AzureCredentials
- 
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.
- 
createKeyVaultClientpublic static com.azure.security.keyvault.secrets.SecretClient createKeyVaultClient(com.azure.core.credential.TokenCredential credential, String keyVaultUrl) 
- 
getSystemCredentialByIdpublic 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.
- 
getTokenCredentialpublic static com.azure.core.credential.TokenCredential getTokenCredential(AzureBaseCredentials credentials) 
- 
getCredentialById
- 
getSubscriptionId- Specified by:
- getSubscriptionIdin class- AzureBaseCredentials
 
- 
getClientId
- 
getClientSecret
- 
getPlainClientSecret
- 
setCertificateId
- 
getCertificateId
- 
getTenant
- 
setTenant
- 
getOauth2TokenEndpointDeprecated.use tenant related methods instead.For backward compatibility.
- 
setOauth2TokenEndpointDeprecated.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>"
 
- 
getAzureEnvionmentNameDeprecated.typo.
- 
getAzureEnvironmentName- Specified by:
- getAzureEnvironmentNamein class- AzureBaseCredentials
 
- 
setAzureEnvironmentName
- 
getServiceManagementURLDeprecated.
- 
getManagementEndpoint- Specified by:
- getManagementEndpointin class- AzureBaseCredentials
 
- 
setServiceManagementURLDeprecated.
- 
setManagementEndpoint
- 
getAuthenticationEndpointDeprecated.
- 
getActiveDirectoryEndpoint- Specified by:
- getActiveDirectoryEndpointin class- AzureBaseCredentials
 
- 
setAuthenticationEndpointDeprecated.
- 
setActiveDirectoryEndpoint
- 
getResourceManagerEndpoint- Specified by:
- getResourceManagerEndpointin class- AzureBaseCredentials
 
- 
setResourceManagerEndpoint
- 
getAzureEnvironmentpublic com.azure.core.management.AzureEnvironment getAzureEnvironment()- Specified by:
- getAzureEnvironmentin class- AzureBaseCredentials
 
- 
getGraphEndpoint- Specified by:
- getGraphEndpointin class- AzureBaseCredentials
 
- 
setGraphEndpoint
 
-