01: /*************************************************************************
02: * *
03: * EJBCA: The OpenSource Certificate Authority *
04: * *
05: * This software is free software; you can redistribute it and/or *
06: * modify it under the terms of the GNU Lesser General Public *
07: * License as published by the Free Software Foundation; either *
08: * version 2.1 of the License, or any later version. *
09: * *
10: * See terms of license at gnu.org. *
11: * *
12: *************************************************************************/package org.ejbca.core.model.ca.caadmin.extendedcaservices;
13:
14: import java.io.Serializable;
15:
16: import org.apache.log4j.Logger;
17: import org.w3c.dom.Document;
18:
19: /**
20: * Class used when requesting XMKS related services from a CA.
21: *
22: * @author Philip Vendil
23: * @version $Id: XKMSCAServiceRequest.java,v 1.1 2006/12/22 09:20:46 herrvendil Exp $
24: */
25: public class XKMSCAServiceRequest extends ExtendedCAServiceRequest
26: implements Serializable {
27:
28: public static final Logger m_log = Logger
29: .getLogger(XKMSCAServiceRequest.class);
30:
31: private Document doc = null;
32: private String id = null;
33: private boolean sign = false;
34: private boolean encrypt = false;
35:
36: /** Constructor for XKMSCAServiceRequest
37: */
38: public XKMSCAServiceRequest(Document doc, String id, boolean sign,
39: boolean encrypt) {
40: this .doc = doc;
41: this .id = id;
42: this .sign = sign;
43: this .encrypt = encrypt;
44: }
45:
46: public Document getDoc() {
47: return doc;
48: }
49:
50: public String getId() {
51: return id;
52: }
53:
54: public boolean isSign() {
55: return sign;
56: }
57:
58: public boolean isEncrypt() {
59: return encrypt;
60: }
61:
62: }
|