Encrypt one or more parts or elements of the message (external).
This method takes a vector of
WSEncryptionPart object that
contain information about the elements to encrypt. The method call the
encryption method, takes the reference information generated during
encryption and add this to the
This method can be called after
prepare() and can be
called multiple times to encrypt a number of parts or elements.
The method generates a
xenc:Reference element that must
be added to the SecurityHeader. See
dataRef parameter is
null the method
creates and initializes a new Reference element.