public Object getCertStatus() { CertStatus s = resp.getCertStatus(); if (s.getTagNo() == 0) { return(null); // good } else if (s.getTagNo() == 1) { return(new RevokedStatus(RevokedInfo.getInstance(s.getStatus()))); } return(new UnknownStatus()); }