DOMX509IssuerSerial issuerSerial = new DOMX509IssuerSerial(x509Child); CryptoType cryptoType = new CryptoType(CryptoType.TYPE.ISSUER_SERIAL); cryptoType.setIssuerSerial(issuerSerial.getIssuer(), issuerSerial.getSerialNumber()); return data.getDecCrypto().getX509Certificates(cryptoType); } else if (WSConstants.X509_CERT_LN.equals(x509Child.getLocalName())) {
serialNumber = getIssuerSerial().getSerialNumber(); } catch (WSSecurityException e) { LOG.error(e.getMessage(), e);
/** * Gets the certificate identified with X509 issuerSerial data. * * @return a certificate array or null if nothing found */ public X509Certificate[] getX509IssuerSerial(Crypto crypto) throws WSSecurityException { if (crypto == null) { return null; } if (issuerSerial == null) { issuerSerial = getIssuerSerial(); if (issuerSerial == null) { return null; } } CryptoType cryptoType = new CryptoType(CryptoType.TYPE.ISSUER_SERIAL); cryptoType.setIssuerSerial(issuerSerial.getIssuer(), issuerSerial.getSerialNumber()); return crypto.getX509Certificates(cryptoType); }
return false; if (!compare(getIssuerSerial().getSerialNumber(), tokenReference.getIssuerSerial().getSerialNumber())) { return false;