if (responseObject instanceof BasicOCSPResp) {
BasicOCSPResp basicOCSPResp = (BasicOCSPResp) responseObject;
SingleResp[] singleResps = basicOCSPResp.getResponses();
List<ValidationError> errors = new ArrayList<ValidationError>();
for (SingleResp singleResp : singleResps) {
CertificateStatus status = singleResp.getCertStatus();
if (status != null) {
RevokeReason revokeReason = null;
if (status instanceof RevokedStatus) {
RevokedStatus revokedStatus = (RevokedStatus) status;
revokeReason = RevokeReason.getByCode(revokedStatus.getRevocationReason());