Interface Secret
- All Superinterfaces:
HasId,HasInnerModel<com.azure.security.keyvault.secrets.models.SecretProperties>,HasName,Indexable,Updatable<Secret.Update>
public interface Secret
extends Indexable, HasInnerModel<com.azure.security.keyvault.secrets.models.SecretProperties>, HasId, HasName, Updatable<Secret.Update>
An immutable client-side representation of an Azure Key Vault secret.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContainer interface for all the definitions.static interfaceGrouping of secret definition stages.static interfaceThe template for a secret update operation, containing all the settings that can be modified.static interfaceGrouping of secret update stages. -
Method Summary
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModel
-
Method Details
-
getValue
String getValue()- Returns:
- the secret value when the secret is enabled
-
getValueAsync
- Returns:
- the secret value when the secret is enabled
-
attributes
com.azure.security.keyvault.secrets.models.SecretProperties attributes()- Returns:
- the secret management attributes
-
tags
- Returns:
- application specific metadata in the form of key-value pairs
-
contentType
String contentType()- Returns:
- type of the secret value such as a password
-
kid
String kid()- Returns:
- the corresponding key backing the KV certificate if this is a secret backing a KV certificate
-
managed
boolean managed()- Returns:
- true if the secret's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true
-
enabled
boolean enabled()- Returns:
- whether secret is enabled.
-
listVersions
com.azure.core.http.rest.PagedIterable<Secret> listVersions()- Returns:
- a list of individual secret versions with the same secret name
-
listVersionsAsync
com.azure.core.http.rest.PagedFlux<Secret> listVersionsAsync()- Returns:
- a list of individual secret versions with the same secret name
-