KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > util > asn1 > x509 > CRLReason


1 /**
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 package org.apache.geronimo.util.asn1.x509;
19
20 import org.apache.geronimo.util.asn1.DEREnumerated;
21
22 /**
23  * The CRLReason enumeration.
24  * <pre>
25  * CRLReason ::= ENUMERATED {
26  * unspecified (0),
27  * keyCompromise (1),
28  * cACompromise (2),
29  * affiliationChanged (3),
30  * superseded (4),
31  * cessationOfOperation (5),
32  * certificateHold (6),
33  * removeFromCRL (8),
34  * privilegeWithdrawn (9),
35  * aACompromise (10)
36  * }
37  * </pre>
38  */

39 public class CRLReason
40     extends DEREnumerated
41 {
42     /**
43      * @deprecated use lower case version
44      */

45     public static final int UNSPECIFIED = 0;
46     /**
47      * @deprecated use lower case version
48      */

49     public static final int KEY_COMPROMISE = 1;
50     /**
51      * @deprecated use lower case version
52      */

53     public static final int CA_COMPROMISE = 2;
54     /**
55      * @deprecated use lower case version
56      */

57     public static final int AFFILIATION_CHANGED = 3;
58     /**
59      * @deprecated use lower case version
60      */

61     public static final int SUPERSEDED = 4;
62     /**
63      * @deprecated use lower case version
64      */

65     public static final int CESSATION_OF_OPERATION = 5;
66     /**
67      * @deprecated use lower case version
68      */

69     public static final int CERTIFICATE_HOLD = 6;
70     /**
71      * @deprecated use lower case version
72      */

73     public static final int REMOVE_FROM_CRL = 8;
74     /**
75      * @deprecated use lower case version
76      */

77     public static final int PRIVILEGE_WITHDRAWN = 9;
78     /**
79      * @deprecated use lower case version
80      */

81     public static final int AA_COMPROMISE = 10;
82
83     public static final int unspecified = 0;
84     public static final int keyCompromise = 1;
85     public static final int cACompromise = 2;
86     public static final int affiliationChanged = 3;
87     public static final int superseded = 4;
88     public static final int cessationOfOperation = 5;
89     public static final int certificateHold = 6;
90     public static final int removeFromCRL = 8;
91     public static final int privilegeWithdrawn = 9;
92     public static final int aACompromise = 10;
93
94     public CRLReason(
95         int reason)
96     {
97         super(reason);
98     }
99
100     public CRLReason(
101         DEREnumerated reason)
102     {
103         super(reason.getValue().intValue());
104     }
105 }
106
Popular Tags