KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > model > ca > catoken > AvailableHardCAToken


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.catoken;
15
16 /**
17  * Value class containing information about an available hard catoken registered to the HardCATokenManager.
18  *
19  * @author herrvendil
20  * @version $Id: AvailableHardCAToken.java,v 1.1 2006/01/17 20:31:51 anatom Exp $
21  */

22 public class AvailableHardCAToken {
23     
24     private String JavaDoc classpath;
25     private String JavaDoc name;
26     private boolean translateable;
27     private boolean use;
28     
29     public AvailableHardCAToken(String JavaDoc classpath, String JavaDoc name, boolean translateable, boolean use){
30         this.classpath = classpath;
31         this.name = name;
32         this.translateable = translateable;
33         this.use = use;
34     }
35     
36     
37     /**
38      * Method returning the classpath used to create the plugin. Must implement the HardCAToken interface.
39      *
40      */

41     public String JavaDoc getClassPath(){
42         return this.classpath;
43     }
44     
45     /**
46      * Method returning the general name of the plug-in used in the adminweb-gui. If translateable flag is
47      * set then must the resource be in the language files.
48      *
49      */

50     
51     public String JavaDoc getName(){
52         return this.name;
53     }
54
55     /**
56      * Indicates if the name should be translated in the adminweb-gui.
57      *
58      */

59     public boolean isTranslateable(){
60         return this.translateable;
61     }
62
63     /**
64      * Indicates if the plug should be used in the system or if it's a dummy or test class.
65      *
66      */

67     public boolean isUsed(){
68         return this.use;
69     }
70
71 }
72
Popular Tags