public class Cipher extends CipherBase
cipher| Constructor and Description |
|---|
Cipher()
Create a new instance of
Cipher |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decryptWithKey(byte[] encryptedData,
Recipient recipient,
PrivateKey privateKey)
Decrypt data with private key.
|
byte[] |
decryptWithKey(byte[] encryptedData,
Recipient recipient,
PrivateKey privateKey,
Password privateKeyPassword)
Decrypt data with private key.
|
byte[] |
decryptWithPassword(byte[] encryptedData,
Password password)
Decrypt data with password.
|
byte[] |
decryptWithPassword(byte[] encryptedData,
String password)
Decrypt data with password.
|
byte[] |
encrypt(byte[] data)
Encrypt data.
|
byte[] |
encrypt(byte[] data,
boolean embedContentInfo)
Encrypt data.
|
addKeyRecipient, addKeyRecipient, addPasswordRecipient, addPasswordRecipient, close, customParams, defineContentInfoSize, getContentInfo, removeAllRecipients, removeKeyRecipient, removePasswordRecipient, setContentInfopublic byte[] encrypt(byte[] data,
boolean embedContentInfo)
data - the data to be encrypted.embedContentInfo - true if content information should be embedded into
data.public byte[] encrypt(byte[] data)
data - the data to be encrypted.public byte[] decryptWithKey(byte[] encryptedData,
Recipient recipient,
PrivateKey privateKey,
Password privateKeyPassword)
encryptedData - the data for encryption.recipient - the key recipient.privateKey - the private key of recipient.privateKeyPassword - the password of private key.public byte[] decryptWithKey(byte[] encryptedData,
Recipient recipient,
PrivateKey privateKey)
encryptedData - the data for encryption.recipient - the key recipient.privateKey - the private key of recipient.public byte[] decryptWithPassword(byte[] encryptedData,
Password password)
encryptedData - the data for encryption.password - the password.public byte[] decryptWithPassword(byte[] encryptedData,
String password)
encryptedData - the data for encryption.password - the password.Copyright © 2016. All rights reserved.