KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > model > ca > caadmin > extendedcaservices > CmsCAServiceRequest


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13  
14 package org.ejbca.core.model.ca.caadmin.extendedcaservices;
15
16 import java.io.Serializable JavaDoc;
17
18 import org.apache.log4j.Logger;
19
20 /**
21  * Class used when requesting CMS related services from a CA.
22  *
23  * @version $Id: CmsCAServiceRequest.java,v 1.2 2006/12/28 13:51:15 anatom Exp $
24  */

25 public class CmsCAServiceRequest extends ExtendedCAServiceRequest implements Serializable JavaDoc {
26     
27     public static final Logger m_log = Logger.getLogger(CmsCAServiceRequest.class);
28     
29     /**
30      * Determines if a de-serialized file is compatible with this class.
31      *
32      * Maintainers must change this value if and only if the new version
33      * of this class is not compatible with old versions. See Sun docs
34      * for <a HREF=http://java.sun.com/products/jdk/1.1/docs/guide
35      * /serialization/spec/version.doc.html> details. </a>
36      *
37      */

38     private static final long serialVersionUID = -762331405718560161L;
39     
40     private byte[] doc = null;
41     private boolean sign = false;
42     
43     /** Constructor
44      */

45     public CmsCAServiceRequest(byte[] doc, boolean sign) {
46         this.doc = doc;
47         this.sign = sign;
48     }
49     public byte[] getDoc() {
50         return doc;
51     }
52     public boolean isSign() {
53         return sign;
54     }
55 }
56
Popular Tags