01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: */package org.apache.geronimo.crypto.asn1.x509;
17:
18: import org.apache.geronimo.crypto.asn1.DEREnumerated;
19:
20: /**
21: * The CRLReason enumeration.
22: * <pre>
23: * CRLReason ::= ENUMERATED {
24: * unspecified (0),
25: * keyCompromise (1),
26: * cACompromise (2),
27: * affiliationChanged (3),
28: * superseded (4),
29: * cessationOfOperation (5),
30: * certificateHold (6),
31: * removeFromCRL (8),
32: * privilegeWithdrawn (9),
33: * aACompromise (10)
34: * }
35: * </pre>
36: */
37: public class CRLReason extends DEREnumerated {
38: /**
39: * @deprecated use lower case version
40: */
41: public static final int UNSPECIFIED = 0;
42: /**
43: * @deprecated use lower case version
44: */
45: public static final int KEY_COMPROMISE = 1;
46: /**
47: * @deprecated use lower case version
48: */
49: public static final int CA_COMPROMISE = 2;
50: /**
51: * @deprecated use lower case version
52: */
53: public static final int AFFILIATION_CHANGED = 3;
54: /**
55: * @deprecated use lower case version
56: */
57: public static final int SUPERSEDED = 4;
58: /**
59: * @deprecated use lower case version
60: */
61: public static final int CESSATION_OF_OPERATION = 5;
62: /**
63: * @deprecated use lower case version
64: */
65: public static final int CERTIFICATE_HOLD = 6;
66: /**
67: * @deprecated use lower case version
68: */
69: public static final int REMOVE_FROM_CRL = 8;
70: /**
71: * @deprecated use lower case version
72: */
73: public static final int PRIVILEGE_WITHDRAWN = 9;
74: /**
75: * @deprecated use lower case version
76: */
77: public static final int AA_COMPROMISE = 10;
78:
79: public static final int unspecified = 0;
80: public static final int keyCompromise = 1;
81: public static final int cACompromise = 2;
82: public static final int affiliationChanged = 3;
83: public static final int super seded = 4;
84: public static final int cessationOfOperation = 5;
85: public static final int certificateHold = 6;
86: public static final int removeFromCRL = 8;
87: public static final int privilegeWithdrawn = 9;
88: public static final int aACompromise = 10;
89:
90: public CRLReason(int reason) {
91: super (reason);
92: }
93:
94: public CRLReason(DEREnumerated reason) {
95: super(reason.getValue().intValue());
96: }
97: }
|