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
Modifier and TypeClassDescriptionstatic class
static class
static class
Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptor
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
com.cloudbees.plugins.credentials.common.IdCredentials.Helpers
Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
com.cloudbees.plugins.credentials.common.StandardCredentials.NameProvider
-
Constructor Summary
ConstructorDescriptionAzureCredentials
(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.SecretClient
createKeyVaultClient
(com.azure.core.credential.TokenCredential credential, String keyVaultUrl) Deprecated.Deprecated.com.azure.core.management.AzureEnvironment
static com.azure.core.credential.TokenCredential
getCredentialById
(Item owner, String credentialId) Deprecated.use tenant related methods instead.Deprecated.getServicePrincipal
(String credentialsId) Deprecated.static com.azure.core.credential.TokenCredential
getSystemCredentialById
(String credentialID) Only checks the system provider for credentials.static com.azure.core.credential.TokenCredential
getTokenCredential
(AzureBaseCredentials credentials) void
setActiveDirectoryEndpoint
(String activeDirectoryEndpoint) void
setAuthenticationEndpoint
(String authenticationEndpoint) Deprecated.void
setAzureEnvironmentName
(String azureEnvironmentName) void
setCertificateId
(String certificateId) void
setGraphEndpoint
(String graphEndpoint) void
setManagementEndpoint
(String managementEndpoint) void
setOauth2TokenEndpoint
(String oauth2TokenEndpoint) Deprecated.use tenant related methods instead.void
setResourceManagerEndpoint
(String resourceManagerEndpoint) void
setServiceManagementURL
(String serviceManagementURL) Deprecated.void
Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
equals, getDescription, getId, hashCode
Methods inherited from class com.cloudbees.plugins.credentials.BaseCredentials
getDescriptor, getScope
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getSubscriptionId
in 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:
getAzureEnvironmentName
in classAzureBaseCredentials
-
setAzureEnvironmentName
-
getServiceManagementURL
Deprecated. -
getManagementEndpoint
- Specified by:
getManagementEndpoint
in classAzureBaseCredentials
-
setServiceManagementURL
Deprecated. -
setManagementEndpoint
-
getAuthenticationEndpoint
Deprecated. -
getActiveDirectoryEndpoint
- Specified by:
getActiveDirectoryEndpoint
in classAzureBaseCredentials
-
setAuthenticationEndpoint
Deprecated. -
setActiveDirectoryEndpoint
-
getResourceManagerEndpoint
- Specified by:
getResourceManagerEndpoint
in classAzureBaseCredentials
-
setResourceManagerEndpoint
-
getAzureEnvironment
public com.azure.core.management.AzureEnvironment getAzureEnvironment()- Specified by:
getAzureEnvironment
in classAzureBaseCredentials
-
getGraphEndpoint
- Specified by:
getGraphEndpoint
in classAzureBaseCredentials
-
setGraphEndpoint
-