01: package org.ejbca.core.model.ca.catoken;
02:
03: public class CATokenConstants {
04:
05: public static final String SIGALG_SHA1_WITH_RSA = "SHA1WithRSA";
06: public static final String SIGALG_SHA256_WITH_RSA = "SHA256WithRSA";
07: public static final String SIGALG_MD5_WITH_RSA = "MD5WithRSA";
08: public static final String SIGALG_SHA1_WITH_ECDSA = "SHA1withECDSA";
09: public static final String SIGALG_SHA256_WITH_ECDSA = "SHA256withECDSA";
10: public static final String SIGALG_SHA256_WITH_RSA_AND_MGF1 = "SHA256WithRSAAndMGF1";
11:
12: /** This differs between java 1.5 and java 1.4 */
13: public static final String[] AVAILABLE_SIGALGS = {
14: SIGALG_SHA1_WITH_RSA, SIGALG_SHA256_WITH_RSA,
15: SIGALG_MD5_WITH_RSA, SIGALG_SHA256_WITH_RSA_AND_MGF1,
16: SIGALG_SHA1_WITH_ECDSA, SIGALG_SHA256_WITH_ECDSA };
17:
18: public static final String KEYALGORITHM_RSA = "RSA";
19: public static final String KEYALGORITHM_ECDSA = "ECDSA";
20:
21: public static final int CATOKENTYPE_P12 = 1;
22: public static final int CATOKENTYPE_HSM = 2;
23: public static final int CATOKENTYPE_NULL = 3;
24:
25: }
|