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 Classes Modifier and Type Interface Description static interfaceSecret.DefinitionContainer interface for all the definitions.static interfaceSecret.DefinitionStagesGrouping of secret definition stages.static interfaceSecret.UpdateThe template for a secret update operation, containing all the settings that can be modified.static interfaceSecret.UpdateStagesGrouping of secret update stages.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.security.keyvault.secrets.models.SecretPropertiesattributes()StringcontentType()booleanenabled()StringgetValue()Mono<String>getValueAsync()Stringkid()com.azure.core.http.rest.PagedIterable<Secret>listVersions()com.azure.core.http.rest.PagedFlux<Secret>listVersionsAsync()booleanmanaged()Map<String,String>tags()-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModel
-
-
-
-
Method Detail
-
getValue
String getValue()
- Returns:
- the secret value when the secret is enabled
-
attributes
com.azure.security.keyvault.secrets.models.SecretProperties attributes()
- Returns:
- the secret management attributes
-
tags
Map<String,String> 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
-
-