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.x9;
020    
021    import org.apache.geronimo.util.asn1.DERObjectIdentifier;
022    
023    public interface X9ObjectIdentifiers
024    {
025        //
026        // X9.62
027        //
028        // ansi-X9-62 OBJECT IDENTIFIER ::= { iso(1) member-body(2)
029        //            us(840) ansi-x962(10045) }
030        //
031        static final String    ansi_X9_62 = "1.2.840.10045";
032        static final String    id_fieldType = ansi_X9_62 + ".1";
033    
034        static final DERObjectIdentifier    prime_field
035                        = new DERObjectIdentifier(id_fieldType + ".1");
036    
037        static final DERObjectIdentifier    characteristic_two_field
038                        = new DERObjectIdentifier(id_fieldType + ".2");
039    
040        static final DERObjectIdentifier    gnBasis
041                        = new DERObjectIdentifier(id_fieldType + ".2.3.1");
042    
043        static final DERObjectIdentifier    tpBasis
044                        = new DERObjectIdentifier(id_fieldType + ".2.3.2");
045    
046        static final DERObjectIdentifier    ppBasis
047                        = new DERObjectIdentifier(id_fieldType + ".2.3.3");
048    
049        static final String    id_ecSigType = ansi_X9_62 + ".4";
050    
051        static final DERObjectIdentifier    ecdsa_with_SHA1
052                        = new DERObjectIdentifier(id_ecSigType + ".1");
053    
054        static final String    id_publicKeyType = ansi_X9_62 + ".2";
055    
056        static final DERObjectIdentifier    id_ecPublicKey
057                        = new DERObjectIdentifier(id_publicKeyType + ".1");
058    
059        //
060        // named curves
061        //
062        static final String     ellipticCurve = ansi_X9_62 + ".3";
063    
064        //
065        // Two Curves
066        //
067        static final String     cTwoCurve = ellipticCurve + ".0";
068    
069        static final DERObjectIdentifier    c2pnb163v1 = new DERObjectIdentifier(cTwoCurve + ".1");
070        static final DERObjectIdentifier    c2pnb163v2 = new DERObjectIdentifier(cTwoCurve + ".2");
071        static final DERObjectIdentifier    c2pnb163v3 = new DERObjectIdentifier(cTwoCurve + ".3");
072        static final DERObjectIdentifier    c2pnb176w1 = new DERObjectIdentifier(cTwoCurve + ".4");
073        static final DERObjectIdentifier    c2tnb191v1 = new DERObjectIdentifier(cTwoCurve + ".5");
074        static final DERObjectIdentifier    c2tnb191v2 = new DERObjectIdentifier(cTwoCurve + ".6");
075        static final DERObjectIdentifier    c2tnb191v3 = new DERObjectIdentifier(cTwoCurve + ".7");
076        static final DERObjectIdentifier    c2onb191v4 = new DERObjectIdentifier(cTwoCurve + ".8");
077        static final DERObjectIdentifier    c2onb191v5 = new DERObjectIdentifier(cTwoCurve + ".9");
078        static final DERObjectIdentifier    c2pnb208w1 = new DERObjectIdentifier(cTwoCurve + ".10");
079        static final DERObjectIdentifier    c2tnb239v1 = new DERObjectIdentifier(cTwoCurve + ".11");
080        static final DERObjectIdentifier    c2tnb239v2 = new DERObjectIdentifier(cTwoCurve + ".12");
081        static final DERObjectIdentifier    c2tnb239v3 = new DERObjectIdentifier(cTwoCurve + ".13");
082        static final DERObjectIdentifier    c2onb239v4 = new DERObjectIdentifier(cTwoCurve + ".14");
083        static final DERObjectIdentifier    c2onb239v5 = new DERObjectIdentifier(cTwoCurve + ".15");
084        static final DERObjectIdentifier    c2pnb272w1 = new DERObjectIdentifier(cTwoCurve + ".16");
085        static final DERObjectIdentifier    c2png304v1 = new DERObjectIdentifier(cTwoCurve + ".17");
086        static final DERObjectIdentifier    c2tnb359v1 = new DERObjectIdentifier(cTwoCurve + ".18");
087        static final DERObjectIdentifier    c2pnb368w1 = new DERObjectIdentifier(cTwoCurve + ".19");
088        static final DERObjectIdentifier    c2tnb431r1 = new DERObjectIdentifier(cTwoCurve + ".20");
089    
090        //
091        // Prime
092        //
093        static final String     primeCurve = ellipticCurve + ".1";
094    
095        static final DERObjectIdentifier    prime192v1 = new DERObjectIdentifier(primeCurve + ".1");
096        static final DERObjectIdentifier    prime192v2 = new DERObjectIdentifier(primeCurve + ".2");
097        static final DERObjectIdentifier    prime192v3 = new DERObjectIdentifier(primeCurve + ".3");
098        static final DERObjectIdentifier    prime239v1 = new DERObjectIdentifier(primeCurve + ".4");
099        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