Encrypts one XML element to a recipient's certificate, wrapped in the element the caller names.
the element to encrypt
the recipient's certificate
wrapper (saml:EncryptedAssertion by default), algorithm, keyTransport, keyWrap and logArtifact
wrapper
saml:EncryptedAssertion
algorithm
keyTransport
keyWrap
logArtifact
the wrapper element's XML
Encrypts one XML element to a recipient's certificate, wrapped in the element the caller names.