Key Interface
Implements
public interface Key
extends Indexable, HasInner<KeyBundle>, 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 rx.Observable<byte[]> | backupAsync() |
abstract byte[] |
decrypt(JsonWebKeyEncryptionAlgorithm algorithm, byte[] content)
Decrypts a single block of encrypted data. |
abstract rx.Observable<byte[]> |
decryptAsync(JsonWebKeyEncryptionAlgorithm algorithm, byte[] content)
Decrypts a single block of encrypted data. |
abstract byte[] |
encrypt(JsonWebKeyEncryptionAlgorithm algorithm, byte[] content)
Encrypts an arbitrary sequence of bytes using an encryption key that is stored in a key vault. |
abstract rx.Observable<byte[]> |
encryptAsync(JsonWebKeyEncryptionAlgorithm algorithm, byte[] content)
Encrypts an arbitrary sequence of bytes using an encryption key that is stored in a key vault. |
abstract
Json |
jsonWebKey() |
abstract com.microsoft.azure.PagedList<Key> | listVersions() |
abstract rx.Observable<Key> | listVersionsAsync() |
abstract boolean | managed() |
abstract byte[] |
sign(JsonWebKeySignatureAlgorithm algorithm, byte[] digest)
Creates a signature from a digest. |
abstract rx.Observable<byte[]> |
signAsync(JsonWebKeySignatureAlgorithm algorithm, byte[] digest)
Creates a signature from a digest. |
abstract java.util.Map<java.lang.String,java.lang.String> | tags() |
abstract byte[] |
unwrapKey(JsonWebKeyEncryptionAlgorithm algorithm, byte[] key)
Unwraps a symmetric key wrapped originally by this Key Vault key. |
abstract rx.Observable<byte[]> |
unwrapKeyAsync(JsonWebKeyEncryptionAlgorithm algorithm, byte[] key)
Unwraps a symmetric key wrapped originally by this Key Vault key. |
abstract boolean |
verify(JsonWebKeySignatureAlgorithm algorithm, byte[] digest, byte[] signature)
Verifies a signature from a digest. |
abstract rx.Observable<java.lang.Boolean> |
verifyAsync(JsonWebKeySignatureAlgorithm algorithm, byte[] digest, byte[] signature)
Verifies a signature from a digest. |
abstract byte[] |
wrapKey(JsonWebKeyEncryptionAlgorithm algorithm, byte[] key)
Wraps a symmetric key using the specified algorithm. |
abstract rx.Observable<byte[]> |
wrapKeyAsync(JsonWebKeyEncryptionAlgorithm algorithm, byte[] key)
Wraps a symmetric key using the specified algorithm. |
Method Details
attributes
public abstract KeyAttributes attributes()
Returns:
backup
public abstract byte[] backup()
Returns:
backupAsync
public abstract Observable
Returns:
decrypt
public abstract byte[] decrypt(JsonWebKeyEncryptionAlgorithm algorithm, byte[] content)
Decrypts a single block of encrypted data.
Parameters:
Returns:
decryptAsync
public abstract Observable
Decrypts a single block of encrypted data.
Parameters:
Returns:
encrypt
public abstract byte[] encrypt(JsonWebKeyEncryptionAlgorithm 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 Observable
Encrypts an arbitrary sequence of bytes using an encryption key that is stored in a key vault.
Parameters:
Returns:
jsonWebKey
public abstract JsonWebKey jsonWebKey()
Returns:
listVersions
public abstract PagedList
Returns:
listVersionsAsync
public abstract Observable
Returns:
managed
public abstract boolean managed()
Returns:
sign
public abstract byte[] sign(JsonWebKeySignatureAlgorithm algorithm, byte[] digest)
Creates a signature from a digest.
Parameters:
Returns:
signAsync
public abstract Observable
Creates a signature from a digest.
Parameters:
Returns:
tags
public abstract Map
Returns:
unwrapKey
public abstract byte[] unwrapKey(JsonWebKeyEncryptionAlgorithm algorithm, byte[] key)
Unwraps a symmetric key wrapped originally by this Key Vault key.
Parameters:
Returns:
unwrapKeyAsync
public abstract Observable
Unwraps a symmetric key wrapped originally by this Key Vault key.
Parameters:
Returns:
verify
public abstract boolean verify(JsonWebKeySignatureAlgorithm algorithm, byte[] digest, byte[] signature)
Verifies a signature from a digest.
Parameters:
Returns:
verifyAsync
public abstract Observable
Verifies a signature from a digest.
Parameters:
Returns:
wrapKey
public abstract byte[] wrapKey(JsonWebKeyEncryptionAlgorithm algorithm, byte[] key)
Wraps a symmetric key using the specified algorithm.
Parameters:
Returns:
wrapKeyAsync
public abstract Observable
Wraps a symmetric key using the specified algorithm.
Parameters:
Returns:
Applies to
Azure SDK for Java