public class VirgilCipher extends VirgilCipherBase implements AutoCloseable
swigCMemOwn| Modifier | Constructor and Description |
|---|---|
|
VirgilCipher() |
protected |
VirgilCipher(long cPtr,
boolean cMemoryOwn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
decryptWithKey(byte[] encryptedData,
byte[] recipientId,
byte[] privateKey) |
byte[] |
decryptWithKey(byte[] encryptedData,
byte[] recipientId,
byte[] privateKey,
byte[] privateKeyPassword) |
byte[] |
decryptWithPassword(byte[] encryptedData,
byte[] pwd) |
void |
delete() |
byte[] |
encrypt(byte[] data) |
byte[] |
encrypt(byte[] data,
boolean embedContentInfo) |
protected void |
finalize() |
protected static long |
getCPtr(VirgilCipher obj) |
addKeyRecipient, addPasswordRecipient, computeShared, computeShared, customParams, defineContentInfoSize, getContentInfo, getCPtr, keyRecipientExists, removeAllRecipients, removeKeyRecipient, removePasswordRecipient, setContentInfoprotected VirgilCipher(long cPtr,
boolean cMemoryOwn)
public VirgilCipher()
protected static long getCPtr(VirgilCipher obj)
protected void finalize()
finalize in class VirgilCipherBasepublic void delete()
delete in class VirgilCipherBasepublic void close()
close in interface AutoCloseableclose in class VirgilCipherBasepublic byte[] encrypt(byte[] data,
boolean embedContentInfo)
public byte[] encrypt(byte[] data)
public byte[] decryptWithKey(byte[] encryptedData,
byte[] recipientId,
byte[] privateKey,
byte[] privateKeyPassword)
public byte[] decryptWithKey(byte[] encryptedData,
byte[] recipientId,
byte[] privateKey)
public byte[] decryptWithPassword(byte[] encryptedData,
byte[] pwd)
Copyright © 2016. All rights reserved.