KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > model > ra > UserDataConstants


1 package org.ejbca.core.model.ra;
2
3 import java.util.HashMap JavaDoc;
4
5 public class UserDataConstants {
6     // Constants for Status of user
7

8     public static final int STATUS_NEW = 10; // New user
9
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 JavaDoc STATUS_TEXT = new HashMap JavaDoc();
18     
19     static {
20         STATUS_TEXT.put(new Integer JavaDoc(STATUS_NEW),"STATUSNEW");
21         STATUS_TEXT.put(new Integer JavaDoc(STATUS_FAILED),"STATUSFAILED");
22         STATUS_TEXT.put(new Integer JavaDoc(STATUS_INITIALIZED),"STATUSINITIALIZED");
23         STATUS_TEXT.put(new Integer JavaDoc(STATUS_INPROCESS),"STATUSINPROCESS");
24         STATUS_TEXT.put(new Integer JavaDoc(STATUS_GENERATED),"STATUSGENERATED");
25         STATUS_TEXT.put(new Integer JavaDoc(STATUS_REVOKED),"STATUSREVOKED");
26         STATUS_TEXT.put(new Integer JavaDoc(STATUS_HISTORICAL),"STATUSHISTORICAL");
27         STATUS_TEXT.put(new Integer JavaDoc(STATUS_KEYRECOVERY),"STATUSKEYRECOVERY");
28     }
29         
30
31 }
32
Popular Tags