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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
com.cloudbees.plugins.credentials.common.IdCredentials.HelpersNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
com.cloudbees.plugins.credentials.common.StandardCredentials.NameProvider -
Constructor Summary
ConstructorsConstructorDescriptionAzureCredentials(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 Summary
Modifier 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.BaseStandardCredentials
equals, getDescription, getId, hashCodeMethods inherited from class com.cloudbees.plugins.credentials.BaseCredentials
getDescriptor, getScopeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.plugins.credentials.Credentials
forRun, 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. -
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
-
getSubscriptionId
- Specified by:
getSubscriptionIdin classAzureBaseCredentials
-
getClientId
-
getClientSecret
-
getPlainClientSecret
-
setCertificateId
-
getCertificateId
-
getTenant
-
setTenant
-
getOauth2TokenEndpoint
Deprecated.use tenant related methods instead.For backward compatibility. -
setOauth2TokenEndpoint
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.typo. -
getAzureEnvironmentName
- Specified by:
getAzureEnvironmentNamein classAzureBaseCredentials
-
setAzureEnvironmentName
-
getServiceManagementURL
Deprecated. -
getManagementEndpoint
- Specified by:
getManagementEndpointin classAzureBaseCredentials
-
setServiceManagementURL
Deprecated. -
setManagementEndpoint
-
getAuthenticationEndpoint
Deprecated. -
getActiveDirectoryEndpoint
- Specified by:
getActiveDirectoryEndpointin classAzureBaseCredentials
-
setAuthenticationEndpoint
Deprecated. -
setActiveDirectoryEndpoint
-
getResourceManagerEndpoint
- Specified by:
getResourceManagerEndpointin classAzureBaseCredentials
-
setResourceManagerEndpoint
-
getAzureEnvironment
public com.azure.core.management.AzureEnvironment getAzureEnvironment()- Specified by:
getAzureEnvironmentin classAzureBaseCredentials
-
getGraphEndpoint
- Specified by:
getGraphEndpointin classAzureBaseCredentials
-
setGraphEndpoint
-