Keys Interface

Implements

public interface Keys
extends SupportsCreating<Blank>, SupportsDeletingById, SupportsGettingById<Key>, SupportsGettingByName<Key>, SupportsListing<Key>

Entry point for Key Vault keys API.

Method Summary

Modifier and Type Method and Description
abstract Key getByNameAndVersion(String name, String version)

Gets a Key Vault key.

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

Gets a Key Vault key.

abstract Key restore(byte[] backup)

Restores a backup key into a Key Vault key.

abstract Mono<Key> restoreAsync(byte[] backup)

Restores a backup key into a Key Vault key.

Method Details

getByNameAndVersion

public abstract Key getByNameAndVersion(String name, String version)

Gets a Key Vault key.

Parameters:

name - the name of the key
version - the version of the key

Returns:

the key

getByNameAndVersionAsync

public abstract Mono getByNameAndVersionAsync(String name, String version)

Gets a Key Vault key.

Parameters:

name - the name of the key
version - the version of the key

Returns:

the key

restore

public abstract Key restore(byte[] backup)

Restores a backup key into a Key Vault key.

Parameters:

backup - the backup key

Returns:

the key restored from the backup

restoreAsync

public abstract Mono restoreAsync(byte[] backup)

Restores a backup key into a Key Vault key.

Parameters:

backup - the backup key

Returns:

the key restored from the backup

Applies to