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  
20  package org.apache.geronimo.util.asn1.x509;
21  
22  import org.apache.geronimo.util.asn1.DERObjectIdentifier;
23  
24  /**
25   * PolicyQualifierId, used in the CertificatePolicies
26   * X509V3 extension.
27   *
28   * <pre>
29   *    id-qt          OBJECT IDENTIFIER ::=  { id-pkix 2 }
30   *    id-qt-cps      OBJECT IDENTIFIER ::=  { id-qt 1 }
31   *    id-qt-unotice  OBJECT IDENTIFIER ::=  { id-qt 2 }
32   *  PolicyQualifierId ::=
33   *       OBJECT IDENTIFIER ( id-qt-cps | id-qt-unotice )
34   * </pre>
35   */
36  public class PolicyQualifierId extends DERObjectIdentifier
37  {
38     private static final String id_qt = "1.3.6.1.5.5.7.2";
39  
40     private PolicyQualifierId(String id)
41        {
42           super(id);
43        }
44  
45     public static final PolicyQualifierId id_qt_cps =
46         new PolicyQualifierId(id_qt + ".1");
47     public static final PolicyQualifierId id_qt_unotice =
48         new PolicyQualifierId(id_qt + ".2");
49  }