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