Package org.bouncycastle.cert.ocsp

Examples of org.bouncycastle.cert.ocsp.CertificateStatus


      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());
View Full Code Here


        // request processing
        Req[] requestList = ocspReq.getRequestList();
        for (Req ocspRequest : requestList) {
            CertificateID certificateID = ocspRequest.getCertID();
            CertificateStatus certificateStatus = CertificateStatus.GOOD;
            if (revoked) {
                certificateStatus = new RevokedStatus(new Date(), CRLReason.privilegeWithdrawn);
            }
            basicOCSPRespBuilder.addResponse(certificateID, certificateStatus);
        }
View Full Code Here

      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());
View Full Code Here

TOP

Related Classes of org.bouncycastle.cert.ocsp.CertificateStatus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.