KickJava   Java API By Example, From Geeks To Geeks.

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


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 import java.io.Serializable JavaDoc;
17
18 /**
19  * Holds properties of a HardCAToken.
20  *
21  * @version $Id: HardCATokenInfo.java,v 1.1 2006/01/17 20:31:51 anatom Exp $
22  */

23 public class HardCATokenInfo extends CATokenInfo implements Serializable JavaDoc {
24     
25     String JavaDoc properties;
26     String JavaDoc classPath;
27     String JavaDoc authenticationCode;
28     int cATokenStatus;
29     
30     public HardCATokenInfo(){}
31     
32     public String JavaDoc getClassPath(){
33         return classPath;
34     }
35     
36     public void setClassPath(String JavaDoc classpath){
37         this.classPath = classpath;
38     }
39     
40     public String JavaDoc getProperties(){
41         return properties;
42     }
43     
44     public void setProperties(String JavaDoc properties){
45         this.properties = properties;
46     }
47         
48     /**
49      * @return Returns the authenticationcode.
50      */

51     public String JavaDoc getAuthenticationCode() {
52         return authenticationCode;
53     }
54     /**
55      * @param authenticationcode The authenticationcode to set.
56      */

57     public void setAuthenticationCode(String JavaDoc authenticationcode) {
58         this.authenticationCode = authenticationcode;
59     }
60     
61     /**
62      *
63      * @param catokenstatus is one of IHardCAToken.STATUS_.. constants
64      */

65     public void setCATokenStatus(int catokenstatus){
66       this.cATokenStatus = catokenstatus;
67     }
68     
69     /**
70      *
71      * @return catokenstatus, one of IHardCAToken.STATUS_.. constants
72      */

73     public int getCATokenStatus(){
74       return cATokenStatus;
75     }
76 }
77
Popular Tags