Key Interface
Implements
public interface Key
extends Indexable, HasInnerModel<KeyProperties>, HasId, HasName, Updatable<Update>
An immutable client-side representation of an Azure Key Vault key.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Key |
attributes() |
abstract byte[] | backup() |
abstract Mono<byte[]> | backupAsync() |
abstract byte[] |
decrypt(EncryptionAlgorithm algorithm, byte[] content)
Decrypts a single block of encrypted data. |
abstract Mono<byte[]> |
decryptAsync(EncryptionAlgorithm algorithm, byte[] content)
Decrypts a single block of encrypted data. |
abstract byte[] |
encrypt(EncryptionAlgorithm algorithm, byte[] content)
Encrypts an arbitrary sequence of bytes using an encryption key that is stored in a key vault. |
abstract Mono<byte[]> |
encryptAsync(EncryptionAlgorithm algorithm, byte[] content)
Encrypts an arbitrary sequence of bytes using an encryption key that is stored in a key vault. |
abstract
Json |
getJsonWebKey() |
abstract
Mono<Json |
getJsonWebKeyAsync() |
abstract
Paged |
listVersions() |
abstract
Paged |
listVersionsAsync() |
abstract boolean | managed() |
abstract byte[] |
sign(SignatureAlgorithm algorithm, byte[] digest)
Creates a signature from a digest. |
abstract Mono<byte[]> |
signAsync(SignatureAlgorithm algorithm, byte[] digest)
Creates a signature from a digest. |
abstract Map<String,String> | tags() |
abstract byte[] |
unwrapKey(KeyWrapAlgorithm algorithm, byte[] key)
Unwraps a symmetric key wrapped originally by this Key Vault key. |
abstract Mono<byte[]> |
unwrapKeyAsync(KeyWrapAlgorithm algorithm, byte[] key)
Unwraps a symmetric key wrapped originally by this Key Vault key. |
abstract boolean |
verify(SignatureAlgorithm algorithm, byte[] digest, byte[] signature)
Verifies a signature from a digest. |
abstract Mono<Boolean> |
verifyAsync(SignatureAlgorithm algorithm, byte[] digest, byte[] signature)
Verifies a signature from a digest. |
abstract byte[] |
wrapKey(KeyWrapAlgorithm algorithm, byte[] key)
Wraps a symmetric key using the specified algorithm. |
abstract Mono<byte[]> |
wrapKeyAsync(KeyWrapAlgorithm algorithm, byte[] key)
Wraps a symmetric key using the specified algorithm. |
Method Details
attributes
public abstract KeyProperties attributes()
Returns:
backup
public abstract byte[] backup()
Returns:
backupAsync
public abstract Mono
Returns:
decrypt
public abstract byte[] decrypt(EncryptionAlgorithm algorithm, byte[] content)
Decrypts a single block of encrypted data.
Parameters:
Returns:
decryptAsync
public abstract Mono
Decrypts a single block of encrypted data.
Parameters:
Returns:
encrypt
public abstract byte[] encrypt(EncryptionAlgorithm algorithm, byte[] content)
Encrypts an arbitrary sequence of bytes using an encryption key that is stored in a key vault.
Parameters:
Returns:
encryptAsync
public abstract Mono
Encrypts an arbitrary sequence of bytes using an encryption key that is stored in a key vault.
Parameters:
Returns:
getJsonWebKey
public abstract JsonWebKey getJsonWebKey()
Returns:
getJsonWebKeyAsync
public abstract Mono
Returns:
listVersions
public abstract PagedIterable
Returns:
listVersionsAsync
public abstract PagedFlux
Returns:
managed
public abstract boolean managed()
Returns:
sign
public abstract byte[] sign(SignatureAlgorithm algorithm, byte[] digest)
Creates a signature from a digest.
Parameters:
Returns:
signAsync
public abstract Mono
Creates a signature from a digest.
Parameters:
Returns:
tags
public abstract Map
Returns:
unwrapKey
public abstract byte[] unwrapKey(KeyWrapAlgorithm algorithm, byte[] key)
Unwraps a symmetric key wrapped originally by this Key Vault key.
Parameters:
Returns:
unwrapKeyAsync
public abstract Mono
Unwraps a symmetric key wrapped originally by this Key Vault key.
Parameters:
Returns:
verify
public abstract boolean verify(SignatureAlgorithm algorithm, byte[] digest, byte[] signature)
Verifies a signature from a digest.
Parameters:
Returns:
verifyAsync
public abstract Mono
Verifies a signature from a digest.
Parameters:
Returns:
wrapKey
public abstract byte[] wrapKey(KeyWrapAlgorithm algorithm, byte[] key)
Wraps a symmetric key using the specified algorithm.
Parameters:
Returns:
wrapKeyAsync
public abstract Mono
Wraps a symmetric key using the specified algorithm.
Parameters:
Returns:
Applies to
Azure SDK for Java