EncryptedParts

The section EncryptedParts tells which part of the message should be encrypted.
<sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
  <sp:Body />
  • sp:Body indicates the body message needs to be encrypted
Encrypt the body using the algorithm referenced in assertion AlgorithmSuite:
  • create an encryption key using TripleDesRsa15 algorithm (i.e. generate a TripleDES symmetric key and then encrypt it with a RSA1.5 public key) like example2 in crypto key chapter that uses AES256.
  • encrypt the body with the created key

To find the exact syntax of security message read the specifications "Web Services Security: SOAP Message Security 1.0".