KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > model > hardtoken > HardTokenIssuerData


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 /*
15  * HardTokenIssuerData.java
16  *
17  * Created on den 19 januari 2003, 13:11
18  */

19
20 package org.ejbca.core.model.hardtoken;
21
22
23 /**
24  * This is a value class containing the data relating to a hard token issuer sent between
25  * server and clients.
26  *
27  *
28  * @author TomSelleck
29  * @version $Id: HardTokenIssuerData.java,v 1.1 2006/01/17 20:31:52 anatom Exp $
30  */

31 public class HardTokenIssuerData implements java.io.Serializable JavaDoc, Comparable JavaDoc {
32   
33     // Public Constants
34
// Indicates the type of administrator.
35

36     // Public Constructors
37
public HardTokenIssuerData(int hardtokenissuerid, String JavaDoc alias, int admingroupid , HardTokenIssuer hardtokenissuer){
38       this.hardtokenissuerid=hardtokenissuerid;
39       this.alias=alias;
40       this.admingroupid = admingroupid;
41       this.hardtokenissuer=hardtokenissuer;
42     }
43     
44     // Public Methods
45

46     public int getHardTokenIssuerId(){ return this.hardtokenissuerid; }
47     public void setHardTokenIssuerId(int hardtokenissuerid){ this.hardtokenissuerid=hardtokenissuerid; }
48     
49     public String JavaDoc getAlias(){ return this.alias; }
50     public void setAlias(String JavaDoc alias){ this.alias=alias; }
51     
52     public int getAdminGroupId(){ return this.admingroupid; }
53     public void setAdminGroupId(int admingroupid){ this.admingroupid=admingroupid;}
54            
55     public HardTokenIssuer getHardTokenIssuer(){ return this.hardtokenissuer; }
56     public void setHardTokenIssuer(HardTokenIssuer hardtokenissuer){ this.hardtokenissuer=hardtokenissuer; }
57        
58     public int compareTo(Object JavaDoc obj) {
59       return this.alias.compareTo( ((HardTokenIssuerData) obj).getAlias());
60     }
61     
62     // Private fields
63
private int hardtokenissuerid;
64     private String JavaDoc alias;
65     private int admingroupid;
66     private HardTokenIssuer hardtokenissuer;
67 }
68
Popular Tags