| Package | Description |
|---|---|
| com.cosmian.jna.abe | |
| com.cosmian.rest.abe | |
| com.cosmian.rest.kmip.objects |
| Modifier and Type | Method and Description |
|---|---|
int |
Ffi.createDecryptionCache(PrivateKey userDecryptionKey)
Create an decryption cache that can be used with
Ffi.decryptHeaderUsingCache(int, byte[]) Use of the cache
speeds up decryption of the header WARN: the cache MUST be destroyed after use with
Ffi.destroyDecryptionCache(int) |
DecryptedHeader |
Ffi.decryptHeader(PrivateKey userDecryptionKey,
byte[] encryptedHeaderBytes)
Decrypt a hybrid header, recovering the symmetric key
|
DecryptedHeader |
Ffi.decryptHeader(PrivateKey userDecryptionKey,
byte[] encryptedHeaderBytes,
int uidLen,
int additionalDataLen)
Decrypt a hybrid header, recovering the symmetric key, and optionally, the resource UID and additional data
|
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
Abe.retrievePrivateMasterKey(String privateMasterKeyUniqueIdentifier)
Retrieve the Master Private Key from the KMS
|
PrivateKey |
Abe.retrieveUserDecryptionKey(String userDecryptionKeyUniqueIdentifier)
Retrieve a User Decryption Key from the KMS
|
| Modifier and Type | Method and Description |
|---|---|
String |
Abe.importPrivateMasterKey(String uniqueIdentifier,
PrivateKey privateMasterKey,
boolean replaceExisting)
Import a Private Master Key in the KMS
|
String |
Abe.importUserDecryptionKey(String uniqueIdentifier,
PrivateKey userDecryptionKey,
boolean replaceExisting)
Import a User Decryption Key in the KMS
|
| Modifier and Type | Method and Description |
|---|---|
static PrivateKey |
PrivateKey.fromJson(String json)
Deserialize an instance from its Json representation obtained using toJson()
|
PrivateKey |
PrivateKey.keyBlock(KeyBlock keyBlock) |
Copyright © 2022. All rights reserved.