certs = new X509Certificate[1];
certs[0] = cert;
return new SAMLKeyInfo(assertion, certs);
}
} else if (data != null && data.containsIssuerSerial()) {
XMLX509IssuerSerial issuerSerial = data.itemIssuerSerial(0);
String alias =
crypto.getAliasForX509Cert(
issuerSerial.getIssuerName(), issuerSerial.getSerialNumber()
);
certs = crypto.getCertificates(alias);
return new SAMLKeyInfo(assertion, certs);
}
} else if (ki.containsKeyValue()) {