public final class DatasourceServicePrincipalInKeyVault extends DatasourceCredentialEntity
Constructor and Description |
---|
DatasourceServicePrincipalInKeyVault() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Gets the credential description.
|
String |
getId()
Gets the credential id.
|
String |
getKeyVaultClientId()
Gets the client id to access the KeyVault storing service principal.
|
String |
getKeyVaultEndpoint()
Gets the endpoint to the KeyVault storing service principal.
|
String |
getName()
Gets the credential name.
|
String |
getSecretNameForDatasourceClientId()
Gets the name of the KeyVault secret holding client secret.
|
String |
getSecretNameForDatasourceClientSecret()
Gets the name of the KeyVault secret holding client secret.
|
String |
getTenantId()
Gets the tenant id of the service principal.
|
DatasourceServicePrincipalInKeyVault |
setDescription(String description)
Sets the description.
|
DatasourceServicePrincipalInKeyVault |
setKeyVaultForDatasourceSecrets(String keyVaultEndpoint,
String keyVaultClientId,
String keyVaultClientSecret)
Sets the keyVault containing the data source secrets.
|
DatasourceServicePrincipalInKeyVault |
setName(String name)
Sets the name.
|
DatasourceServicePrincipalInKeyVault |
setSecretNameForDatasourceClientId(String clientIdSecretName)
Sets the name of the keyvault secret holding client id.
|
DatasourceServicePrincipalInKeyVault |
setSecretNameForDatasourceClientSecret(String clientSecretName)
Sets the name of the keyvault secret holding client secret.
|
DatasourceServicePrincipalInKeyVault |
setTenantId(String tenantId)
Sets the tenant id.
|
public DatasourceServicePrincipalInKeyVault()
public String getId()
DatasourceCredentialEntity
getId
in class DatasourceCredentialEntity
public String getName()
DatasourceCredentialEntity
getName
in class DatasourceCredentialEntity
public String getDescription()
DatasourceCredentialEntity
getDescription
in class DatasourceCredentialEntity
public String getKeyVaultEndpoint()
public String getKeyVaultClientId()
public String getTenantId()
public String getSecretNameForDatasourceClientId()
public String getSecretNameForDatasourceClientSecret()
public DatasourceServicePrincipalInKeyVault setName(String name)
name
- The namepublic DatasourceServicePrincipalInKeyVault setKeyVaultForDatasourceSecrets(String keyVaultEndpoint, String keyVaultClientId, String keyVaultClientSecret)
keyVaultEndpoint
- The keyVault endpointkeyVaultClientId
- The client id to access the keyVaultkeyVaultClientSecret
- The client secret to access the keyVaultpublic DatasourceServicePrincipalInKeyVault setSecretNameForDatasourceClientId(String clientIdSecretName)
clientIdSecretName
- The secret namepublic DatasourceServicePrincipalInKeyVault setSecretNameForDatasourceClientSecret(String clientSecretName)
clientSecretName
- The secret namepublic DatasourceServicePrincipalInKeyVault setTenantId(String tenantId)
tenantId
- The tenant idpublic DatasourceServicePrincipalInKeyVault setDescription(String description)
description
- The descriptionCopyright © 2021 Microsoft Corporation. All rights reserved.