public final class ServicePrincipalCredential extends Credential
| Constructor and Description |
|---|
ServicePrincipalCredential() |
| Modifier and Type | Method and Description |
|---|---|
Object |
servicePrincipalId()
Get the servicePrincipalId property: The app ID of the service principal used to authenticate.
|
AzureKeyVaultSecretReference |
servicePrincipalKey()
Get the servicePrincipalKey property: The key of the service principal used to authenticate.
|
Object |
tenant()
Get the tenant property: The ID of the tenant to which the service principal belongs.
|
void |
validate()
Validates the instance.
|
ServicePrincipalCredential |
withAnnotations(List<Object> annotations)
Set the annotations property: List of tags that can be used for describing the Credential.
|
ServicePrincipalCredential |
withDescription(String description)
Set the description property: Credential description.
|
ServicePrincipalCredential |
withServicePrincipalId(Object servicePrincipalId)
Set the servicePrincipalId property: The app ID of the service principal used to authenticate.
|
ServicePrincipalCredential |
withServicePrincipalKey(AzureKeyVaultSecretReference servicePrincipalKey)
Set the servicePrincipalKey property: The key of the service principal used to authenticate.
|
ServicePrincipalCredential |
withTenant(Object tenant)
Set the tenant property: The ID of the tenant to which the service principal belongs.
|
additionalProperties, annotations, description, withAdditionalPropertiespublic ServicePrincipalCredential withDescription(String description)
withDescription in class Credentialdescription - the description value to set.public ServicePrincipalCredential withAnnotations(List<Object> annotations)
withAnnotations in class Credentialannotations - the annotations value to set.public Object servicePrincipalId()
public ServicePrincipalCredential withServicePrincipalId(Object servicePrincipalId)
servicePrincipalId - the servicePrincipalId value to set.public AzureKeyVaultSecretReference servicePrincipalKey()
public ServicePrincipalCredential withServicePrincipalKey(AzureKeyVaultSecretReference servicePrincipalKey)
servicePrincipalKey - the servicePrincipalKey value to set.public Object tenant()
public ServicePrincipalCredential withTenant(Object tenant)
tenant - the tenant value to set.public void validate()
validate in class CredentialIllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.