KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > util > asn1 > x9 > X9ObjectIdentifiers


1 /**
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

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

121     public static final DERObjectIdentifier id_dsa_with_sha1 = new DERObjectIdentifier("1.2.840.10040.4.3");
122 }
123
124
Popular Tags