Interface CryptoManager
@ProviderType
public interface CryptoManager
-
Method Summary
Modifier and TypeMethodDescriptionCryptoServiceResult<byte[]> decrypt(byte[] ciphertext, long companyId, KeyReference keyReference) voiddeleteKey(long companyId, KeyReference keyReference) CryptoServiceResult<byte[]> encrypt(long companyId, KeyReference keyReference, byte[] plaintext) exportKey(long companyId, KeyReference keyReference) generateAsymmetricKeyReference(String algorithm, long companyId, KeyReference keyReference) generateSecretKeyReference(String algorithm, long companyId, KeyReference keyReference) getCryptoKey(long companyId, KeyReference keyReference) getCryptoProviderIds(long companyId) getKeyReferences(long companyId, String cryptoProviderId) importSecretKey(String algorithm, long companyId, byte[] keyBytes, KeyReference keyReference) unwrap(long companyId, KeyReference keyReference, KeyReference masterKeyReference, String wrappedKeyAlgorithm, byte[] wrappedKeyBytes, int wrappedKeyCipherType) CryptoServiceResult<byte[]> wrap(long companyId, KeyReference keyReference, KeyReference masterKeyReference)
-
Method Details
-
decrypt
CryptoServiceResult<byte[]> decrypt(byte[] ciphertext, long companyId, KeyReference keyReference) throws CryptoException - Throws:
CryptoException
-
deleteKey
- Throws:
CryptoException
-
encrypt
CryptoServiceResult<byte[]> encrypt(long companyId, KeyReference keyReference, byte[] plaintext) throws CryptoException - Throws:
CryptoException
-
exportKey
CryptoServiceResult<Key> exportKey(long companyId, KeyReference keyReference) throws CryptoException - Throws:
CryptoException
-
generateAsymmetricKeyReference
CryptoServiceResult<KeyReference> generateAsymmetricKeyReference(String algorithm, long companyId, KeyReference keyReference) throws CryptoException - Throws:
CryptoException
-
generateSecretKeyReference
CryptoServiceResult<KeyReference> generateSecretKeyReference(String algorithm, long companyId, KeyReference keyReference) throws CryptoException - Throws:
CryptoException
-
getCryptoKey
- Throws:
CryptoException
-
getCryptoProviderIds
- Throws:
CryptoException
-
getKeyReferences
- Throws:
CryptoException
-
importSecretKey
CryptoServiceResult<KeyReference> importSecretKey(String algorithm, long companyId, byte[] keyBytes, KeyReference keyReference) throws CryptoException - Throws:
CryptoException
-
unwrap
CryptoServiceResult<KeyReference> unwrap(long companyId, KeyReference keyReference, KeyReference masterKeyReference, String wrappedKeyAlgorithm, byte[] wrappedKeyBytes, int wrappedKeyCipherType) throws CryptoException - Throws:
CryptoException
-
wrap
CryptoServiceResult<byte[]> wrap(long companyId, KeyReference keyReference, KeyReference masterKeyReference) throws CryptoException - Throws:
CryptoException
-