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()
Gets the key management attributes. |
abstract byte[] |
backup()
GEts a backup of the specified key be downloaded to the client. |
abstract Mono<byte[]> |
backupAsync()
Gets a backup of the specified key be downloaded to the client. |
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()
Gets the Json web key. |
abstract
Mono<Json |
getJsonWebKeyAsync()
Gets the Json web key. |
abstract
Paged |
listVersions()
Gets a list of individual key versions with the same key name. |
abstract
Paged |
listVersionsAsync()
Gets a list of individual key versions with the same key name. |
abstract boolean |
managed()
Checks whether the key's lifetime is managed by key vault. |
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()
Gets application specific metadata in the form of key-value pairs. |
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()
Gets the key management attributes.
Returns:
backup
public abstract byte[] backup()
GEts a backup of the specified key be downloaded to the client.
Returns:
backupAsync
public abstract Mono
Gets a backup of the specified key be downloaded to the client.
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()
Gets the Json web key.
Returns:
getJsonWebKeyAsync
public abstract Mono
Gets the Json web key.
Returns:
listVersions
public abstract PagedIterable
Gets a list of individual key versions with the same key name.
Returns:
listVersionsAsync
public abstract PagedFlux
Gets a list of individual key versions with the same key name.
Returns:
managed
public abstract boolean managed()
Checks whether the key's lifetime is managed by key vault.
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
Gets application specific metadata in the form of key-value pairs.
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