KeyVaultCredentialSettings Class
- java.
lang. Object - com.
azure. resourcemanager. sqlvirtualmachine. models. KeyVaultCredentialSettings
- com.
public final class KeyVaultCredentialSettings
Configure your SQL virtual machine to be able to connect to the Azure Key Vault service.
Constructor Summary
Constructor | Description |
---|---|
KeyVaultCredentialSettings() |
Creates an instance of Key |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
azureKeyVaultUrl()
Get the azure |
String |
credentialName()
Get the credential |
Boolean |
enable()
Get the enable property: Enable or disable key vault credential setting. |
String |
servicePrincipalName()
Get the service |
String |
servicePrincipalSecret()
Get the service |
void |
validate()
Validates the instance. |
Key |
withAzureKeyVaultUrl(String azureKeyVaultUrl)
Set the azure |
Key |
withCredentialName(String credentialName)
Set the credential |
Key |
withEnable(Boolean enable)
Set the enable property: Enable or disable key vault credential setting. |
Key |
withServicePrincipalName(String servicePrincipalName)
Set the service |
Key |
withServicePrincipalSecret(String servicePrincipalSecret)
Set the service |
Methods inherited from java.lang.Object
Constructor Details
KeyVaultCredentialSettings
public KeyVaultCredentialSettings()
Creates an instance of KeyVaultCredentialSettings class.
Method Details
azureKeyVaultUrl
public String azureKeyVaultUrl()
Get the azureKeyVaultUrl property: Azure Key Vault url.
Returns:
credentialName
public String credentialName()
Get the credentialName property: Credential name.
Returns:
enable
public Boolean enable()
Get the enable property: Enable or disable key vault credential setting.
Returns:
servicePrincipalName
public String servicePrincipalName()
Get the servicePrincipalName property: Service principal name to access key vault.
Returns:
servicePrincipalSecret
public String servicePrincipalSecret()
Get the servicePrincipalSecret property: Service principal name secret to access key vault.
Returns:
validate
public void validate()
Validates the instance.
withAzureKeyVaultUrl
public KeyVaultCredentialSettings withAzureKeyVaultUrl(String azureKeyVaultUrl)
Set the azureKeyVaultUrl property: Azure Key Vault url.
Parameters:
Returns:
withCredentialName
public KeyVaultCredentialSettings withCredentialName(String credentialName)
Set the credentialName property: Credential name.
Parameters:
Returns:
withEnable
public KeyVaultCredentialSettings withEnable(Boolean enable)
Set the enable property: Enable or disable key vault credential setting.
Parameters:
Returns:
withServicePrincipalName
public KeyVaultCredentialSettings withServicePrincipalName(String servicePrincipalName)
Set the servicePrincipalName property: Service principal name to access key vault.
Parameters:
Returns:
withServicePrincipalSecret
public KeyVaultCredentialSettings withServicePrincipalSecret(String servicePrincipalSecret)
Set the servicePrincipalSecret property: Service principal name secret to access key vault.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for