001 /**
002 *
003 * Licensed to the Apache Software Foundation (ASF) under one or more
004 * contributor license agreements. See the NOTICE file distributed with
005 * this work for additional information regarding copyright ownership.
006 * The ASF licenses this file to You under the Apache License, Version 2.0
007 * (the "License"); you may not use this file except in compliance with
008 * the License. You may obtain a copy of the License at
009 *
010 * http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018
019 package org.apache.geronimo.util.asn1.x509;
020
021 import org.apache.geronimo.util.asn1.DEREnumerated;
022
023 /**
024 * The CRLReason enumeration.
025 * <pre>
026 * CRLReason ::= ENUMERATED {
027 * unspecified (0),
028 * keyCompromise (1),
029 * cACompromise (2),
030 * affiliationChanged (3),
031 * superseded (4),
032 * cessationOfOperation (5),
033 * certificateHold (6),
034 * removeFromCRL (8),
035 * privilegeWithdrawn (9),
036 * aACompromise (10)
037 * }
038 * </pre>
039 */
040 public class CRLReason
041 extends DEREnumerated
042 {
043 /**
044 * @deprecated use lower case version
045 */
046 public static final int UNSPECIFIED = 0;
047 /**
048 * @deprecated use lower case version
049 */
050 public static final int KEY_COMPROMISE = 1;
051 /**
052 * @deprecated use lower case version
053 */
054 public static final int CA_COMPROMISE = 2;
055 /**
056 * @deprecated use lower case version
057 */
058 public static final int AFFILIATION_CHANGED = 3;
059 /**
060 * @deprecated use lower case version
061 */
062 public static final int SUPERSEDED = 4;
063 /**
064 * @deprecated use lower case version
065 */
066 public static final int CESSATION_OF_OPERATION = 5;
067 /**
068 * @deprecated use lower case version
069 */
070 public static final int CERTIFICATE_HOLD = 6;
071 /**
072 * @deprecated use lower case version
073 */
074 public static final int REMOVE_FROM_CRL = 8;
075 /**
076 * @deprecated use lower case version
077 */
078 public static final int PRIVILEGE_WITHDRAWN = 9;
079 /**
080 * @deprecated use lower case version
081 */
082 public static final int AA_COMPROMISE = 10;
083
084 public static final int unspecified = 0;
085 public static final int keyCompromise = 1;
086 public static final int cACompromise = 2;
087 public static final int affiliationChanged = 3;
088 public static final int superseded = 4;
089 public static final int cessationOfOperation = 5;
090 public static final int certificateHold = 6;
091 public static final int removeFromCRL = 8;
092 public static final int privilegeWithdrawn = 9;
093 public static final int aACompromise = 10;
094
095 public CRLReason(
096 int reason)
097 {
098 super(reason);
099 }
100
101 public CRLReason(
102 DEREnumerated reason)
103 {
104 super(reason.getValue().intValue());
105 }
106 }