Secrets Interface

Implements

public interface Secrets
extends SupportsCreating<Blank>, SupportsDeletingById, SupportsGettingById<Secret>, SupportsGettingByName<Secret>, SupportsListing<Secret>

Entry point for Key Vault secrets API.

Method Summary

Modifier and Type Method and Description
abstract void disableByNameAndVersion(String name, String version)

Disables a secret.

abstract Mono<Void> disableByNameAndVersionAsync(String name, String version)

Disables a secret.

abstract Secret enableByNameAndVersion(String name, String version)

Enables a secret.

abstract Mono<Secret> enableByNameAndVersionAsync(String name, String version)

Enables a secret.

abstract Secret getByNameAndVersion(String name, String version)

Gets a Key Vault secret when the secret is enabled.

abstract Mono<Secret> getByNameAndVersionAsync(String name, String version)

Gets a Key Vault secret when the secret is enabled.

Method Details

disableByNameAndVersion

public abstract void disableByNameAndVersion(String name, String version)

Disables a secret.

Parameters:

name - the name of the secret
version - the version of the secret

disableByNameAndVersionAsync

public abstract Mono disableByNameAndVersionAsync(String name, String version)

Disables a secret.

Parameters:

name - the name of the secret
version - the version of the secret

Returns:

completion

enableByNameAndVersion

public abstract Secret enableByNameAndVersion(String name, String version)

Enables a secret.

Parameters:

name - the name of the secret
version - the version of the secret

Returns:

the secret

enableByNameAndVersionAsync

public abstract Mono enableByNameAndVersionAsync(String name, String version)

Enables a secret.

Parameters:

name - the name of the secret
version - the version of the secret

Returns:

the secret

getByNameAndVersion

public abstract Secret getByNameAndVersion(String name, String version)

Gets a Key Vault secret when the secret is enabled.

Parameters:

name - the name of the secret
version - the version of the secret

Returns:

the secret

getByNameAndVersionAsync

public abstract Mono getByNameAndVersionAsync(String name, String version)

Gets a Key Vault secret when the secret is enabled.

Parameters:

name - the name of the secret
version - the version of the secret

Returns:

the secret

Applies to