public class AzureCredentials extends AzureBaseCredentials
| Modifier and Type | Class and Description |
|---|---|
static class |
AzureCredentials.DescriptorImpl |
static class |
AzureCredentials.ServicePrincipal |
static class |
AzureCredentials.ValidationException |
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptorcom.cloudbees.plugins.credentials.common.StandardCredentials.NameProvider| Constructor and Description |
|---|
AzureCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope,
String id,
String description,
String subscriptionId,
String clientId,
String clientSecret) |
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.
|
| Modifier and Type | Method and Description |
|---|---|
static com.azure.security.keyvault.secrets.SecretClient |
createKeyVaultClient(com.azure.core.credential.TokenCredential credential,
String keyVaultUrl) |
com.microsoft.jenkins.azurecommons.core.credentials.TokenCredentialData |
createToken() |
String |
getActiveDirectoryEndpoint() |
String |
getAuthenticationEndpoint()
Deprecated.
|
String |
getAzureEnvionmentName()
Deprecated.
|
String |
getAzureEnvironmentName() |
String |
getCertificateId() |
String |
getClientId() |
String |
getClientSecret() |
static com.azure.core.credential.TokenCredential |
getCredentialById(String credentialId) |
String |
getGraphEndpoint() |
String |
getManagementEndpoint() |
String |
getOauth2TokenEndpoint()
Deprecated.
use tenant related methods instead.
|
String |
getPlainClientSecret() |
String |
getResourceManagerEndpoint() |
String |
getServiceManagementURL()
Deprecated.
|
static AzureCredentials.ServicePrincipal |
getServicePrincipal(String credentialsId)
Deprecated.
|
String |
getSubscriptionId() |
String |
getTenant() |
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 |
setTenant(String tenant) |
serializeToTokenDataequals, getDescription, getId, hashCodegetDescriptor, getScope@DataBoundConstructor
public AzureCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope,
String id,
String description,
String subscriptionId,
String clientId,
String clientSecret)
@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 public static AzureCredentials.ServicePrincipal getServicePrincipal(String credentialsId)
public static com.azure.security.keyvault.secrets.SecretClient createKeyVaultClient(com.azure.core.credential.TokenCredential credential,
String keyVaultUrl)
public static com.azure.core.credential.TokenCredential getCredentialById(String credentialId)
public String getSubscriptionId()
public String getClientId()
public String getClientSecret()
public String getPlainClientSecret()
@DataBoundSetter public void setCertificateId(String certificateId)
public String getCertificateId()
public String getTenant()
@DataBoundSetter public void setTenant(String tenant)
@Deprecated public String getOauth2TokenEndpoint()
@DataBoundSetter @Deprecated public void setOauth2TokenEndpoint(String oauth2TokenEndpoint)
oauth2TokenEndpoint - the endpoint value in the form "https://login.windows.net/<TenantId>"@Deprecated public String getAzureEnvionmentName()
public String getAzureEnvironmentName()
getAzureEnvironmentName in class AzureBaseCredentials@DataBoundSetter public void setAzureEnvironmentName(String azureEnvironmentName)
@Deprecated public String getServiceManagementURL()
getManagementEndpoint().public String getManagementEndpoint()
getManagementEndpoint in class AzureBaseCredentials@DataBoundSetter @Deprecated public void setServiceManagementURL(String serviceManagementURL)
setManagementEndpoint(String).@DataBoundSetter public void setManagementEndpoint(String managementEndpoint)
@Deprecated public String getAuthenticationEndpoint()
getActiveDirectoryEndpoint().public String getActiveDirectoryEndpoint()
getActiveDirectoryEndpoint in class AzureBaseCredentials@DataBoundSetter @Deprecated public void setAuthenticationEndpoint(String authenticationEndpoint)
setActiveDirectoryEndpoint(String).@DataBoundSetter public void setActiveDirectoryEndpoint(String activeDirectoryEndpoint)
public String getResourceManagerEndpoint()
getResourceManagerEndpoint in class AzureBaseCredentials@DataBoundSetter public void setResourceManagerEndpoint(String resourceManagerEndpoint)
public String getGraphEndpoint()
getGraphEndpoint in class AzureBaseCredentialspublic com.microsoft.jenkins.azurecommons.core.credentials.TokenCredentialData createToken()
createToken in class AzureBaseCredentials@DataBoundSetter public void setGraphEndpoint(String graphEndpoint)
Copyright © 2016–2021. All rights reserved.