if (certNode != null) {
try {
return SecurityUtils.loadX509Certificate(crypto, certNode);
} catch (Exception ex) {
LOG.log(Level.FINE, "X509Certificate can not be created", ex);
throw new WSSecurityException(WSSecurityException.ErrorCode.FAILURE, "invalidSAMLsecurity");
}
}
certNode = getNode(encKeyElement, Constants.SignatureSpecNS, "X509IssuerSerial", 0);
if (certNode != null) {
try {
return SecurityUtils.loadX509IssuerSerial(crypto, certNode);
} catch (Exception ex) {
LOG.log(Level.FINE, "X509Certificate can not be created", ex);
throw new WSSecurityException(WSSecurityException.ErrorCode.FAILURE, "invalidSAMLsecurity");
}
}
return null;
}