wss11found = true;
Wss11 wss11 = (Wss11)ped;
assertEquals("Signature confirmation must be true", true,
wss11.isRequireSignatureConfirmation());
} else if(ped instanceof SignedEncryptedParts) {
SignedEncryptedParts parts = (SignedEncryptedParts)ped;
if(parts.isSignedParts()) {
signedPartsFound = true;
assertEquals(
"Incorrect number of headers in SignedParts",
2, parts.getHeaders().size());
} else {
encryptedPartsFound = true;
assertEquals(
"Incorrect number of headers in EncryptedParts",
1, parts.getHeaders().size());
}
}
}
assertTrue("SignedParts missing", signedPartsFound);
assertTrue("EncryptedParts missing", encryptedPartsFound);