KickJava   Java API By Example, From Geeks To Geeks.

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


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 nonsensitive information about a CAToken.
20  *
21  * @version $Id: SoftCATokenInfo.java,v 1.2 2006/10/31 08:19:41 anatom Exp $
22  */

23 public class SoftCATokenInfo extends CATokenInfo implements Serializable JavaDoc {
24     
25     private String JavaDoc signkeyspec = "1024";
26     private String JavaDoc enckeyspec = "1024";
27     private String JavaDoc signalgorithm = KEYALGORITHM_RSA;
28     private String JavaDoc encalgorithm = KEYALGORITHM_RSA;
29     
30     
31     public SoftCATokenInfo(){}
32     
33     /**
34      * KeySize data is used when generating CAToken.
35      */

36     public String JavaDoc getSignKeySpec(){ return signkeyspec; }
37     /**
38      * KeySize data is used when generating CAToken.
39      */

40     public void setSignKeySpec(String JavaDoc keyspec){ this.signkeyspec = keyspec; }
41     /**
42      * KeySize data is used when generating CAToken.
43      */

44     public String JavaDoc getEncKeySpec(){ return enckeyspec; }
45     /**
46      * KeySize data is used when generating CAToken.
47      */

48     public void setEncKeySpec(String JavaDoc keyspec){ this.enckeyspec = keyspec; }
49
50     /**
51      * Algorithm indicates which type of key that should be generated.
52      */

53     public String JavaDoc getSignKeyAlgorithm(){ return signalgorithm; }
54     
55     /**
56      * Algorithm indicates which type of key that should be generated.
57      */

58     public void setSignKeyAlgorithm(String JavaDoc algorithm){ this.signalgorithm = algorithm; }
59     /**
60      * Algorithm indicates which type of key that should be generated.
61      * Currently only RSA keys are supported.
62      */

63     public String JavaDoc getEncKeyAlgorithm(){ return encalgorithm; }
64     
65     /**
66      * Algorithm indicates which type of key that should be generated.
67      * Currently only RSA keys are supported.
68      */

69     public void setEncKeyAlgorithm(String JavaDoc algorithm){ this.encalgorithm = algorithm; }
70 }
71
Popular Tags