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 SecretProperties attributes()
abstract String contentType()
abstract boolean enabled()
abstract String getValue()
abstract Mono<String> getValueAsync()
abstract String kid()
abstract PagedIterable<Secret> listVersions()
abstract PagedFlux<Secret> listVersionsAsync()
abstract boolean managed()
abstract Map<String,String> tags()

Method Details

attributes

public abstract SecretProperties attributes()

Returns:

the secret management attributes

contentType

public abstract String contentType()

Returns:

type of the secret value such as a password

enabled

public abstract boolean enabled()

Returns:

whether secret is enabled.

getValue

public abstract String getValue()

Returns:

the secret value when the secret is enabled

getValueAsync

public abstract Mono getValueAsync()

Returns:

the secret value when the secret is enabled

kid

public abstract String kid()

Returns:

the corresponding key backing the KV certificate if this is a secret backing a KV certificate

listVersions

public abstract PagedIterable listVersions()

Returns:

a list of individual secret versions with the same secret name

listVersionsAsync

public abstract PagedFlux listVersionsAsync()

Returns:

a list of individual secret versions with the same secret name

managed

public abstract 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

tags

public abstract Map tags()

Returns:

application specific metadata in the form of key-value pairs

Applies to