01: /*************************************************************************
02: * *
03: * EJBCA: The OpenSource Certificate Authority *
04: * *
05: * This software is free software; you can redistribute it and/or *
06: * modify it under the terms of the GNU Lesser General Public *
07: * License as published by the Free Software Foundation; either *
08: * version 2.1 of the License, or any later version. *
09: * *
10: * See terms of license at gnu.org. *
11: * *
12: *************************************************************************/package org.ejbca.core.model.ca.catoken;
13:
14: import java.io.Serializable;
15:
16: /**
17: * Holds nonsensitive information about a CAToken.
18: *
19: * @version $Id: SoftCATokenInfo.java,v 1.3 2007/07/25 08:56:45 anatom Exp $
20: */
21: public class SoftCATokenInfo extends CATokenInfo implements
22: Serializable {
23:
24: private String signkeyspec = "1024";
25: private String enckeyspec = "1024";
26: private String signalgorithm = KEYALGORITHM_RSA;
27: private String encalgorithm = KEYALGORITHM_RSA;
28:
29: public SoftCATokenInfo() {
30: setClassPath(SoftCAToken.class.getName());
31: }
32:
33: /**
34: * KeySize data is used when generating CAToken.
35: */
36: public String getSignKeySpec() {
37: return signkeyspec;
38: }
39:
40: /**
41: * KeySize data is used when generating CAToken.
42: */
43: public void setSignKeySpec(String keyspec) {
44: this .signkeyspec = keyspec;
45: }
46:
47: /**
48: * KeySize data is used when generating CAToken.
49: */
50: public String getEncKeySpec() {
51: return enckeyspec;
52: }
53:
54: /**
55: * KeySize data is used when generating CAToken.
56: */
57: public void setEncKeySpec(String keyspec) {
58: this .enckeyspec = keyspec;
59: }
60:
61: /**
62: * Algorithm indicates which type of key that should be generated.
63: */
64: public String getSignKeyAlgorithm() {
65: return signalgorithm;
66: }
67:
68: /**
69: * Algorithm indicates which type of key that should be generated.
70: */
71: public void setSignKeyAlgorithm(String algorithm) {
72: this .signalgorithm = algorithm;
73: }
74:
75: /**
76: * Algorithm indicates which type of key that should be generated.
77: * Currently only RSA keys are supported.
78: */
79: public String getEncKeyAlgorithm() {
80: return encalgorithm;
81: }
82:
83: /**
84: * Algorithm indicates which type of key that should be generated.
85: * Currently only RSA keys are supported.
86: */
87: public void setEncKeyAlgorithm(String algorithm) {
88: this.encalgorithm = algorithm;
89: }
90: }
|