KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > model > ca > certextensions > AvailableCertificateExtension


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.certextensions;
15
16 /**
17  * Value object class used to display information about
18  * available extensions in the edit certificate profile
19  * page
20  *
21  *
22  * @author Philip Vendil 2007 jan 5
23  *
24  * @version $Id: AvailableCertificateExtension.java,v 1.1 2007/01/09 16:47:19 herrvendil Exp $
25  */

26
27 public class AvailableCertificateExtension {
28
29     private int id;
30     private String JavaDoc oID;
31     private String JavaDoc displayName;
32     private boolean translatable;
33     
34
35     /**
36      * Default constructor used to create one instance of the object
37      * @param id the id of the extension defined in the configuration file.
38      * @param oid the unique OID string of the extension
39      * @param displayName The name displayed in the GUI
40      * @param used if the extension should be used or hidden
41      * @param translatable if the displayName should be looked up in the language resources.
42      */

43     AvailableCertificateExtension(int id, String JavaDoc oid, String JavaDoc displayName, boolean translatable) {
44         super();
45         this.id = id;
46         oID = oid;
47         this.displayName = displayName;
48         this.translatable = translatable;
49     }
50     
51     /**
52      * @return The name displayed in the GUI
53      */

54     public String JavaDoc getDisplayName() {
55         return displayName;
56     }
57
58     /**
59      * @return the id of the extension defined in the configuration file.
60      */

61     public int getId() {
62         return id;
63     }
64
65     /**
66      * @return the unique OID string of the extension
67      */

68     public String JavaDoc getOID() {
69         return oID;
70     }
71
72     /**
73      * @return if the extension should be used or hidden
74      */

75     public boolean isTranslatable() {
76         return translatable;
77     }
78
79
80 }
81
Popular Tags