Secret Interface
Implements
public interface Secret
extends Indexable, HasInnerModel<SecretProperties>, HasId, HasName, Updatable<Update>
An immutable client-side representation of an Azure Key Vault secret.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Secret |
attributes()
Gets the secret management attributes. |
abstract String |
contentType()
Gets type of the secret value such as a password. |
abstract boolean |
enabled()
Checks whether secret is enabled. |
abstract String |
getValue()
Gets the secret value when the secret is enabled. |
abstract Mono<String> |
getValueAsync()
Gets the secret value when the secret is enabled. |
abstract String |
kid()
Gets the corresponding key backing the KV certificate if this is a secret backing a KV certificate. |
abstract
Paged |
listVersions()
Gets a list of individual secret versions with the same secret name. |
abstract
Paged |
listVersionsAsync()
Gets a list of individual secret versions with the same secret name. |
abstract boolean |
managed()
Checks whether the secret's lifetime is managed by key vault. |
abstract Map<String,String> |
tags()
Gets application specific metadata in the form of key-value pairs. |
Method Details
attributes
public abstract SecretProperties attributes()
Gets the secret management attributes.
Returns:
contentType
public abstract String contentType()
Gets type of the secret value such as a password.
Returns:
enabled
public abstract boolean enabled()
Checks whether secret is enabled.
Returns:
getValue
public abstract String getValue()
Gets the secret value when the secret is enabled.
Returns:
getValueAsync
public abstract Mono
Gets the secret value when the secret is enabled.
Returns:
kid
public abstract String kid()
Gets the corresponding key backing the KV certificate if this is a secret backing a KV certificate.
Returns:
listVersions
public abstract PagedIterable
Gets a list of individual secret versions with the same secret name.
Returns:
listVersionsAsync
public abstract PagedFlux
Gets a list of individual secret versions with the same secret name.
Returns:
managed
public abstract boolean managed()
Checks whether the secret's lifetime is managed by key vault.
Returns:
tags
public abstract Map
Gets application specific metadata in the form of key-value pairs.
Returns:
Applies to
Azure SDK for Java