DecryptorV2 Class¶
DecryptorV2 decrypts the supplied EncryptedContent element, using asynchronous operations, contingent on the retrieval of the CK Data packet, the KDK, and the successful decryption of both of these. For the meaning of “KDK”, etc. see: https://github.com/named-data/name-based-access-control/blob/new/docs/spec.rst
[C++]: | #include <ndn-cpp/encrypt/decryptor-v2.hpp> Namespace:
ndn |
---|---|
[Python]: | Module: pyndn.encrypt |
[Java]: | Package: net.named_data.jndn.encrypt |
DecryptorV2 Constructor¶
Create a DecryptorV2 with the given parameters.
[C++]: | DecryptorV2(
PibKey* credentialsKey,
Validator* validator,
KeyChain* keyChain,
Face* face
);
|
---|---|
[Python]: | def __init__(self
credentialsKey, # PibKey
validator, # Validator
keyChain, # KeyChain
face # Face
)
|
[JavaScript]: | var DecryptorV2 = function DecryptorV2(
credentialsKey, // PibKey
validator, // Validator
keyChain, // KeyChain
face // Face
)
|
[Java]: | public DecryptorV2(
PibKey credentialsKey,
Validator validator,
KeyChain keyChain,
Face face
)
|
Parameters: |
DecryptorV2.decrypt Method¶
Asynchronously decrypt the encryptedContent.
[C++]: | void decrypt(
const ptr_lib::shared_ptr<EncryptedContent>& encryptedContent,
const DecryptSuccessCallback& onSuccess,
const EncryptError::OnError& onError
);
|
---|---|
[Python]: | def decrypt(self,
encryptedContent, # EncryptedContent
onSuccess, # function object
onError # function object
)
|
[JavaScript]: | DecryptorV2.prototype.decrypt = function(
encryptedContent, // EncryptedContent
onSuccess, // function
onError // function
)
|
[Java]: | public final void decrypt(
EncryptedContent encryptedContent,
DecryptSuccessCallback onSuccess,
EncryptError.OnError onError
)
|
Parameters: |
|