if (url == null) {
return new ValidationError[] { new ValidationError(OCSPCertificateValidator.VALIDATOR_NAME, "No url found for validation") };
}
OCSPReq req = this.buildRequest(x509Certificate, x509Issuer);
OCSPResp resp = this.sendRequest(req, url);
if (resp.getStatus() != OCSPResponseStatus.SUCCESSFUL) {
return new ValidationError[] { new ValidationError(OCSPCertificateValidator.VALIDATOR_NAME, "Response invalid") };
}
Object responseObject = resp.getResponseObject();
if (responseObject instanceof BasicOCSPResp) {
BasicOCSPResp basicOCSPResp = (BasicOCSPResp) responseObject;
SingleResp[] singleResps = basicOCSPResp.getResponses();
List<ValidationError> errors = new ArrayList<ValidationError>();