public class KeyVaultKey extends Object implements com.microsoft.azure.keyvault.core.IKey
| Modifier | Constructor and Description |
|---|---|
protected |
KeyVaultKey(com.microsoft.azure.keyvault.KeyVaultClient client,
com.microsoft.azure.keyvault.models.KeyBundle keyBundle) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.google.common.util.concurrent.ListenableFuture<byte[]> |
decryptAsync(byte[] ciphertext,
byte[] iv,
byte[] authenticationData,
byte[] authenticationTag,
String algorithm) |
com.google.common.util.concurrent.ListenableFuture<org.apache.commons.lang3.tuple.Triple<byte[],byte[],String>> |
encryptAsync(byte[] plaintext,
byte[] iv,
byte[] authenticationData,
String algorithm) |
String |
getDefaultEncryptionAlgorithm() |
String |
getDefaultKeyWrapAlgorithm() |
String |
getDefaultSignatureAlgorithm() |
String |
getKid() |
com.google.common.util.concurrent.ListenableFuture<org.apache.commons.lang3.tuple.Pair<byte[],String>> |
signAsync(byte[] digest,
String algorithm) |
com.google.common.util.concurrent.ListenableFuture<byte[]> |
unwrapKeyAsync(byte[] ciphertext,
String algorithm) |
com.google.common.util.concurrent.ListenableFuture<Boolean> |
verifyAsync(byte[] digest,
byte[] signature,
String algorithm) |
com.google.common.util.concurrent.ListenableFuture<org.apache.commons.lang3.tuple.Pair<byte[],String>> |
wrapKeyAsync(byte[] plaintext,
String algorithm) |
protected KeyVaultKey(com.microsoft.azure.keyvault.KeyVaultClient client,
com.microsoft.azure.keyvault.models.KeyBundle keyBundle)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String getDefaultEncryptionAlgorithm()
getDefaultEncryptionAlgorithm in interface com.microsoft.azure.keyvault.core.IKeypublic String getDefaultKeyWrapAlgorithm()
getDefaultKeyWrapAlgorithm in interface com.microsoft.azure.keyvault.core.IKeypublic String getDefaultSignatureAlgorithm()
getDefaultSignatureAlgorithm in interface com.microsoft.azure.keyvault.core.IKeypublic String getKid()
getKid in interface com.microsoft.azure.keyvault.core.IKeypublic com.google.common.util.concurrent.ListenableFuture<byte[]> decryptAsync(byte[] ciphertext,
byte[] iv,
byte[] authenticationData,
byte[] authenticationTag,
String algorithm)
decryptAsync in interface com.microsoft.azure.keyvault.core.IKeypublic com.google.common.util.concurrent.ListenableFuture<org.apache.commons.lang3.tuple.Triple<byte[],byte[],String>> encryptAsync(byte[] plaintext, byte[] iv, byte[] authenticationData, String algorithm) throws NoSuchAlgorithmException
encryptAsync in interface com.microsoft.azure.keyvault.core.IKeyNoSuchAlgorithmExceptionpublic com.google.common.util.concurrent.ListenableFuture<org.apache.commons.lang3.tuple.Pair<byte[],String>> wrapKeyAsync(byte[] plaintext, String algorithm) throws NoSuchAlgorithmException
wrapKeyAsync in interface com.microsoft.azure.keyvault.core.IKeyNoSuchAlgorithmExceptionpublic com.google.common.util.concurrent.ListenableFuture<byte[]> unwrapKeyAsync(byte[] ciphertext,
String algorithm)
unwrapKeyAsync in interface com.microsoft.azure.keyvault.core.IKeypublic com.google.common.util.concurrent.ListenableFuture<org.apache.commons.lang3.tuple.Pair<byte[],String>> signAsync(byte[] digest, String algorithm) throws NoSuchAlgorithmException
signAsync in interface com.microsoft.azure.keyvault.core.IKeyNoSuchAlgorithmExceptionpublic com.google.common.util.concurrent.ListenableFuture<Boolean> verifyAsync(byte[] digest, byte[] signature, String algorithm) throws NoSuchAlgorithmException
verifyAsync in interface com.microsoft.azure.keyvault.core.IKeyNoSuchAlgorithmException/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/