X509Data x509data = new X509Data(element, BaseURI);
int noOfISS = x509data.lengthIssuerSerial();
while (storage.hasNext()) {
X509Certificate cert = storage.next();
XMLX509IssuerSerial certSerial = new XMLX509IssuerSerial(element.getOwnerDocument(), cert);
cat.debug("Found Certificate Issuer: "
+ certSerial.getIssuerName());
cat.debug("Found Certificate Serial: "
+ certSerial.getSerialNumber().toString());
for (int i=0; i<noOfISS; i++) {
XMLX509IssuerSerial xmliss = x509data.itemIssuerSerial(i);
cat.debug("Found Element Issuer: "
+ xmliss.getIssuerName());
cat.debug("Found Element Serial: "
+ xmliss.getSerialNumber().toString());
if (certSerial.equals(xmliss)) {
cat.debug("match !!! ");