01: package org.ejbca.core.model.ra;
02:
03: import java.util.HashMap;
04:
05: public class UserDataConstants {
06: // Constants for Status of user
07:
08: public static final int STATUS_NEW = 10; // New user
09: public static final int STATUS_FAILED = 11; // Generation of user certificate failed
10: public static final int STATUS_INITIALIZED = 20;// User has been initialized
11: public static final int STATUS_INPROCESS = 30; // Generation of user certificate in process
12: public static final int STATUS_GENERATED = 40; // A certificate has been generated for the user
13: public static final int STATUS_REVOKED = 50; // The user has been revoked and should not have any more certificates issued
14: public static final int STATUS_HISTORICAL = 60; // The user is old and archived
15: public static final int STATUS_KEYRECOVERY = 70; // The user is should use key recovery functions in next certificate generation.
16:
17: public static final HashMap STATUS_TEXT = new HashMap();
18:
19: static {
20: STATUS_TEXT.put(new Integer(STATUS_NEW), "STATUSNEW");
21: STATUS_TEXT.put(new Integer(STATUS_FAILED), "STATUSFAILED");
22: STATUS_TEXT.put(new Integer(STATUS_INITIALIZED),
23: "STATUSINITIALIZED");
24: STATUS_TEXT.put(new Integer(STATUS_INPROCESS),
25: "STATUSINPROCESS");
26: STATUS_TEXT.put(new Integer(STATUS_GENERATED),
27: "STATUSGENERATED");
28: STATUS_TEXT.put(new Integer(STATUS_REVOKED), "STATUSREVOKED");
29: STATUS_TEXT.put(new Integer(STATUS_HISTORICAL),
30: "STATUSHISTORICAL");
31: STATUS_TEXT.put(new Integer(STATUS_KEYRECOVERY),
32: "STATUSKEYRECOVERY");
33: }
34:
35: }
|