Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Validation of SAML assertions results in an error in the verifyCertificateTrust() method because this method assumes that signatures are always signed by an X509 certificate. The SAML spec gives an example of a signature that uses the SAML assertion to sign the signature in section 18.104.22.168 Example V2.0 from http://docs.oasis-open.org/wss/v1.1/wss-v1.1-spec-os-SAMLTokenProfile.pdf. The "if (actionResult != null)" line in the verifyCertificateTrust() method should probably be "if (actionResult != null && actionResult.get(WSSecurityEngineResult.TAG_X509_CERTIFICATE) != null)".