}
List<X509Certificate> certificateChain = new LinkedList<X509Certificate>();
if (false == keyInfo.containsX509Data()) {
throw new SamlSignatureException("no X509 data in KeyInfo");
}
for (int x509DataItemIdx = 0; x509DataItemIdx < keyInfo.lengthX509Data(); x509DataItemIdx++) {
try {
X509Data x509Data = keyInfo.itemX509Data(x509DataItemIdx);
if (false == x509Data.containsCertificate()) {
continue;
}