Encrypt Method
Encrypts the input data using the recipient's public key.
Syntax
public void encrypt();
Remarks
This method encrypts the input data using the public key specified in RecipientKey. Alternatively, a certificate may be specified by setting RecipientCert
Input and Output Properties
The bean will determine the source and destination of the input and output based on which properties are set.
The order in which the input properties are checked is as follows:
When a valid source is found the search stops. The order in which the output properties are checked is as follows:- SetOutputStream
- OutputFile
- OutputMessage: The output data is written to this property if no other destination is specified.