public interface MessageEncryptor
| Modifier and Type | Method and Description |
|---|---|
boolean |
decrypt(String passwordOfReceiversPrivateKey,
InputStream privateKeyOfReceiver,
InputStream publicKeyOfSender,
InputStream encryptedData,
OutputStream target)
decrypts and verifies the encrypted and signed datastream (if signature is present)
with the recipients private key (decryption) and the senders public key (verification)
|
boolean |
decrypt(String passwordOfReceiversPrivateKey,
InputStream privateKeyOfReceiver,
InputStream encryptedData,
OutputStream target)
decrypts the encypted data stream with the recipients private key
|
boolean |
encrypt(InputStream publicKeyOfRecipient,
InputStream privateKeyOfSender,
String userIdOfSender,
String passwordOfSendersPrivateKey,
String inputDataName,
InputStream plainInputData,
OutputStream target)
encypts the plain input data with the public key and signs it with the private key
|
boolean |
encrypt(InputStream publicKeyOfRecipient,
String inputDataName,
InputStream plainInputData,
OutputStream target)
encrypts the plain input data with the public key (without signing the message)
|
boolean encrypt(InputStream publicKeyOfRecipient, String inputDataName, InputStream plainInputData, OutputStream target)
publicKeyOfRecipient - the public key stream of the message recipientinputDataName - the (file)name of the input dataplainInputData - the input data streamtarget - the encrypted (ascii-armored) target streamboolean encrypt(InputStream publicKeyOfRecipient, InputStream privateKeyOfSender, String userIdOfSender, String passwordOfSendersPrivateKey, String inputDataName, InputStream plainInputData, OutputStream target)
publicKeyOfRecipient - the public key stream of the message recipientprivateKeyOfSender - the private key stream of the message senderuserIdOfSender - the user id of the message senderpasswordOfSendersPrivateKey - the password for the private key of the senderinputDataName - the (file)name of the input dataplainInputData - the input data streamtarget - the encrypted (ascii-armored) target streamboolean decrypt(String passwordOfReceiversPrivateKey, InputStream privateKeyOfReceiver, InputStream encryptedData, OutputStream target)
passwordOfReceiversPrivateKey - the password for the receiver's private keyprivateKeyOfReceiver - the receiver's private keyencryptedData - the encrypted datatarget - the plain data streamboolean decrypt(String passwordOfReceiversPrivateKey, InputStream privateKeyOfReceiver, InputStream publicKeyOfSender, InputStream encryptedData, OutputStream target)
passwordOfReceiversPrivateKey - the password of the receivers private keyprivateKeyOfReceiver - the receiver's private keypublicKeyOfSender - the sender's public keyencryptedData - the encrypted datatarget - the plain data streamCopyright © 2015. All rights reserved.