1 13 14 package org.ejbca.core.model.ca.caadmin.extendedcaservices; 15 16 import java.io.Serializable ; 17 import java.security.cert.X509Certificate ; 18 import java.util.ArrayList ; 19 import java.util.Collection ; 20 import java.util.List ; 21 22 import org.bouncycastle.ocsp.BasicOCSPResp; 23 24 29 public class OCSPCAServiceResponse extends ExtendedCAServiceResponse implements Serializable { 30 31 private List ocspcertificatechain = null; 32 private BasicOCSPResp basicResp = null; 33 34 35 public OCSPCAServiceResponse(BasicOCSPResp basicResp, List ocspsigningcertificatechain) { 36 this.basicResp = basicResp; 37 this.ocspcertificatechain = ocspsigningcertificatechain; 38 } 39 40 public X509Certificate getOCSPSigningCertificate() { return (X509Certificate ) this.ocspcertificatechain.get(0); } 41 public Collection getOCSPSigningCertificateChain() { 42 if (ocspcertificatechain != null) { 43 return this.ocspcertificatechain; 44 } 45 return new ArrayList (); 46 } 47 public BasicOCSPResp getBasicOCSPResp() { return this.basicResp; } 48 49 } 50 | Popular Tags |