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