Class KeyVaultSecret
java.lang.Object
com.azure.security.keyvault.secrets.models.KeyVaultSecret
- Direct Known Subclasses:
DeletedSecret
Secret is the resource consisting of name, value and its attributes specified in
SecretProperties.
It is managed by Secret Service.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionKeyVaultSecret(String name, String value) Creates a Secret withnameandvalue. -
Method Summary
Modifier and TypeMethodDescriptiongetId()Get the secret identifier.getName()Get the secret name.Get the secret propertiesgetValue()Get the value of the secret.setProperties(SecretProperties properties) Set the secret properties
-
Constructor Details
-
KeyVaultSecret
Creates a Secret withnameandvalue.- Parameters:
name- The name of the secret.value- the value of the secret.
-
-
Method Details
-
getValue
Get the value of the secret.- Returns:
- the secret value
-
getId
Get the secret identifier.- Returns:
- the secret identifier.
-
getName
Get the secret name.- Returns:
- the secret name.
-
getProperties
Get the secret properties- Returns:
- the Secret properties
-
setProperties
Set the secret properties- Parameters:
properties- The Secret properties- Returns:
- the updated secret object
- Throws:
NullPointerException- ifpropertiesis null.
-