1 13 14 package org.ejbca.core.model.ca.caadmin.extendedcaservices; 15 16 import java.io.Serializable ; 17 import java.security.PrivateKey ; 18 import java.util.ArrayList ; 19 import java.util.List ; 20 21 import org.apache.log4j.Logger; 22 import org.bouncycastle.asn1.x509.X509Extensions; 23 import org.bouncycastle.ocsp.OCSPReq; 24 25 30 public class OCSPCAServiceRequest extends ExtendedCAServiceRequest implements Serializable { 31 32 public static final Logger m_log = Logger.getLogger(OCSPCAServiceRequest.class); 33 34 private OCSPReq req = null; 35 private ArrayList responseList = null; 36 private X509Extensions exts = null; 37 private String sigAlg = "SHA1WithRSA"; 38 private boolean useCACert = false; 39 private boolean includeChain = true; 40 private String privKeyProvider = "BC"; 42 private PrivateKey privKey = null; 44 private List certificateChain = null; 45 46 48 public OCSPCAServiceRequest(OCSPReq req, ArrayList responseList, X509Extensions exts, String sigAlg, boolean useCACert, boolean includeChain) { 49 this.req = req; 50 this.responseList = responseList; 51 this.exts = exts; 52 this.sigAlg = sigAlg; 53 this.useCACert = useCACert; 54 this.includeChain = includeChain; 55 } 56 public OCSPReq getOCSPrequest() { 57 return req; 58 } 59 public X509Extensions getExtensions() { 60 return exts; 61 } 62 public ArrayList getResponseList() { 63 return responseList; 64 } 65 public String getSigAlg() { 66 return sigAlg; 67 } 68 72 public boolean useCACert() { 73 return useCACert; 74 } 75 79 public boolean includeChain() { 80 return includeChain; 81 } 82 86 public List getCertificateChain() { 87 return certificateChain; 88 } 89 public void setCertificateChain(List certificatechain) { 90 this.certificateChain = certificatechain; 91 } 92 96 public PrivateKey getPrivKey() { 97 return privKey; 98 } 99 public void setPrivKey(PrivateKey privKey) { 100 this.privKey = privKey; 101 } 102 public String getPrivKeyProvider() { 103 return privKeyProvider; 104 } 105 public void setPrivKeyProvider(String privKeyProvider) { 106 this.privKeyProvider = privKeyProvider; 107 } 108 } 109 | Popular Tags |