View Javadoc

1   /**
2    *
3    *  Licensed to the Apache Software Foundation (ASF) under one or more
4    *  contributor license agreements.  See the NOTICE file distributed with
5    *  this work for additional information regarding copyright ownership.
6    *  The ASF licenses this file to You under the Apache License, Version 2.0
7    *  (the "License"); you may not use this file except in compliance with
8    *  the License.  You may obtain a copy of the License at
9    *
10   *     http://www.apache.org/licenses/LICENSE-2.0
11   *
12   *  Unless required by applicable law or agreed to in writing, software
13   *  distributed under the License is distributed on an "AS IS" BASIS,
14   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   *  See the License for the specific language governing permissions and
16   *  limitations under the License.
17   */
18  
19  package org.apache.geronimo.util.asn1.x509;
20  
21  import org.apache.geronimo.util.asn1.DEREnumerated;
22  
23  /**
24   * The CRLReason enumeration.
25   * <pre>
26   * CRLReason ::= ENUMERATED {
27   *  unspecified             (0),
28   *  keyCompromise           (1),
29   *  cACompromise            (2),
30   *  affiliationChanged      (3),
31   *  superseded              (4),
32   *  cessationOfOperation    (5),
33   *  certificateHold         (6),
34   *  removeFromCRL           (8),
35   *  privilegeWithdrawn      (9),
36   *  aACompromise           (10)
37   * }
38   * </pre>
39   */
40  public class CRLReason
41      extends DEREnumerated
42  {
43      /**
44       * @deprecated use lower case version
45       */
46      public static final int UNSPECIFIED = 0;
47      /**
48       * @deprecated use lower case version
49       */
50      public static final int KEY_COMPROMISE = 1;
51      /**
52       * @deprecated use lower case version
53       */
54      public static final int CA_COMPROMISE = 2;
55      /**
56       * @deprecated use lower case version
57       */
58      public static final int AFFILIATION_CHANGED = 3;
59      /**
60       * @deprecated use lower case version
61       */
62      public static final int SUPERSEDED = 4;
63      /**
64       * @deprecated use lower case version
65       */
66      public static final int CESSATION_OF_OPERATION  = 5;
67      /**
68       * @deprecated use lower case version
69       */
70      public static final int CERTIFICATE_HOLD = 6;
71      /**
72       * @deprecated use lower case version
73       */
74      public static final int REMOVE_FROM_CRL = 8;
75      /**
76       * @deprecated use lower case version
77       */
78      public static final int PRIVILEGE_WITHDRAWN = 9;
79      /**
80       * @deprecated use lower case version
81       */
82      public static final int AA_COMPROMISE = 10;
83  
84      public static final int unspecified = 0;
85      public static final int keyCompromise = 1;
86      public static final int cACompromise = 2;
87      public static final int affiliationChanged = 3;
88      public static final int superseded = 4;
89      public static final int cessationOfOperation  = 5;
90      public static final int certificateHold = 6;
91      public static final int removeFromCRL = 8;
92      public static final int privilegeWithdrawn = 9;
93      public static final int aACompromise = 10;
94  
95      public CRLReason(
96          int reason)
97      {
98          super(reason);
99      }
100 
101     public CRLReason(
102         DEREnumerated reason)
103     {
104         super(reason.getValue().intValue());
105     }
106 }