KickJava   Java API By Example, From Geeks To Geeks.

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


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
19
20 /**
21  * Should be enherited by all ExtendedCAServiceInfo Value objects.
22  * These classes are used to retrive general information about the service
23  * and alse used to send parameters to the service when creating it.
24  *
25  * @version $Id: ExtendedCAServiceInfo.java,v 1.4 2006/12/27 11:13:55 anatom Exp $
26  */

27 public abstract class ExtendedCAServiceInfo implements Serializable JavaDoc {
28           
29     /**
30      * Constants indicating the status of the service.
31      */

32     public static final int STATUS_INACTIVE = 1;
33     public static final int STATUS_ACTIVE = 2;
34     
35     public static final int TYPE_OCSPEXTENDEDSERVICE = 1;
36     public static final int TYPE_XKMSEXTENDEDSERVICE = 2;
37     public static final int TYPE_CMSEXTENDEDSERVICE = 3;
38        
39     private int status = STATUS_INACTIVE;
40        
41     public ExtendedCAServiceInfo(int status){
42       this.status = status;
43     }
44     
45     public int getStatus(){ return this.status; }
46
47 }
48
Popular Tags