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.x9;
20  
21  import org.apache.geronimo.util.asn1.DERObjectIdentifier;
22  
23  public interface X9ObjectIdentifiers
24  {
25      //
26      // X9.62
27      //
28      // ansi-X9-62 OBJECT IDENTIFIER ::= { iso(1) member-body(2)
29      //            us(840) ansi-x962(10045) }
30      //
31      static final String    ansi_X9_62 = "1.2.840.10045";
32      static final String    id_fieldType = ansi_X9_62 + ".1";
33  
34      static final DERObjectIdentifier    prime_field
35                      = new DERObjectIdentifier(id_fieldType + ".1");
36  
37      static final DERObjectIdentifier    characteristic_two_field
38                      = new DERObjectIdentifier(id_fieldType + ".2");
39  
40      static final DERObjectIdentifier    gnBasis
41                      = new DERObjectIdentifier(id_fieldType + ".2.3.1");
42  
43      static final DERObjectIdentifier    tpBasis
44                      = new DERObjectIdentifier(id_fieldType + ".2.3.2");
45  
46      static final DERObjectIdentifier    ppBasis
47                      = new DERObjectIdentifier(id_fieldType + ".2.3.3");
48  
49      static final String    id_ecSigType = ansi_X9_62 + ".4";
50  
51      static final DERObjectIdentifier    ecdsa_with_SHA1
52                      = new DERObjectIdentifier(id_ecSigType + ".1");
53  
54      static final String    id_publicKeyType = ansi_X9_62 + ".2";
55  
56      static final DERObjectIdentifier    id_ecPublicKey
57                      = new DERObjectIdentifier(id_publicKeyType + ".1");
58  
59      //
60      // named curves
61      //
62      static final String     ellipticCurve = ansi_X9_62 + ".3";
63  
64      //
65      // Two Curves
66      //
67      static final String     cTwoCurve = ellipticCurve + ".0";
68  
69      static final DERObjectIdentifier    c2pnb163v1 = new DERObjectIdentifier(cTwoCurve + ".1");
70      static final DERObjectIdentifier    c2pnb163v2 = new DERObjectIdentifier(cTwoCurve + ".2");
71      static final DERObjectIdentifier    c2pnb163v3 = new DERObjectIdentifier(cTwoCurve + ".3");
72      static final DERObjectIdentifier    c2pnb176w1 = new DERObjectIdentifier(cTwoCurve + ".4");
73      static final DERObjectIdentifier    c2tnb191v1 = new DERObjectIdentifier(cTwoCurve + ".5");
74      static final DERObjectIdentifier    c2tnb191v2 = new DERObjectIdentifier(cTwoCurve + ".6");
75      static final DERObjectIdentifier    c2tnb191v3 = new DERObjectIdentifier(cTwoCurve + ".7");
76      static final DERObjectIdentifier    c2onb191v4 = new DERObjectIdentifier(cTwoCurve + ".8");
77      static final DERObjectIdentifier    c2onb191v5 = new DERObjectIdentifier(cTwoCurve + ".9");
78      static final DERObjectIdentifier    c2pnb208w1 = new DERObjectIdentifier(cTwoCurve + ".10");
79      static final DERObjectIdentifier    c2tnb239v1 = new DERObjectIdentifier(cTwoCurve + ".11");
80      static final DERObjectIdentifier    c2tnb239v2 = new DERObjectIdentifier(cTwoCurve + ".12");
81      static final DERObjectIdentifier    c2tnb239v3 = new DERObjectIdentifier(cTwoCurve + ".13");
82      static final DERObjectIdentifier    c2onb239v4 = new DERObjectIdentifier(cTwoCurve + ".14");
83      static final DERObjectIdentifier    c2onb239v5 = new DERObjectIdentifier(cTwoCurve + ".15");
84      static final DERObjectIdentifier    c2pnb272w1 = new DERObjectIdentifier(cTwoCurve + ".16");
85      static final DERObjectIdentifier    c2png304v1 = new DERObjectIdentifier(cTwoCurve + ".17");
86      static final DERObjectIdentifier    c2tnb359v1 = new DERObjectIdentifier(cTwoCurve + ".18");
87      static final DERObjectIdentifier    c2pnb368w1 = new DERObjectIdentifier(cTwoCurve + ".19");
88      static final DERObjectIdentifier    c2tnb431r1 = new DERObjectIdentifier(cTwoCurve + ".20");
89  
90      //
91      // Prime
92      //
93      static final String     primeCurve = ellipticCurve + ".1";
94  
95      static final DERObjectIdentifier    prime192v1 = new DERObjectIdentifier(primeCurve + ".1");
96      static final DERObjectIdentifier    prime192v2 = new DERObjectIdentifier(primeCurve + ".2");
97      static final DERObjectIdentifier    prime192v3 = new DERObjectIdentifier(primeCurve + ".3");
98      static final DERObjectIdentifier    prime239v1 = new DERObjectIdentifier(primeCurve + ".4");
99      static final DERObjectIdentifier    prime239v2 = new DERObjectIdentifier(primeCurve + ".5");
100     static final DERObjectIdentifier    prime239v3 = new DERObjectIdentifier(primeCurve + ".6");
101     static final DERObjectIdentifier    prime256v1 = new DERObjectIdentifier(primeCurve + ".7");
102 
103     //
104     // Diffie-Hellman
105     //
106     // dhpublicnumber OBJECT IDENTIFIER ::= { iso(1) member-body(2)
107     //            us(840) ansi-x942(10046) number-type(2) 1 }
108     //
109     static final DERObjectIdentifier    dhpublicnumber = new DERObjectIdentifier("1.2.840.10046.2.1");
110 
111     //
112     // DSA
113     //
114     // dsapublicnumber OBJECT IDENTIFIER ::= { iso(1) member-body(2)
115     //            us(840) ansi-x957(10040) number-type(4) 1 }
116     static final DERObjectIdentifier    id_dsa = new DERObjectIdentifier("1.2.840.10040.4.1");
117 
118     /**
119      *   id-dsa-with-sha1 OBJECT IDENTIFIER ::=  { iso(1) member-body(2)
120      *         us(840) x9-57 (10040) x9cm(4) 3 }
121      */
122     public static final DERObjectIdentifier id_dsa_with_sha1 = new DERObjectIdentifier("1.2.840.10040.4.3");
123 }
124