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.x509; 019 020 import org.apache.geronimo.util.asn1.DERObjectIdentifier; 021 022 public interface X509ObjectIdentifiers 023 { 024 // 025 // base id 026 // 027 static final String id = "2.5.4"; 028 029 static final DERObjectIdentifier commonName = new DERObjectIdentifier(id + ".3"); 030 static final DERObjectIdentifier countryName = new DERObjectIdentifier(id + ".6"); 031 static final DERObjectIdentifier localityName = new DERObjectIdentifier(id + ".7"); 032 static final DERObjectIdentifier stateOrProvinceName = new DERObjectIdentifier(id + ".8"); 033 static final DERObjectIdentifier organization = new DERObjectIdentifier(id + ".10"); 034 static final DERObjectIdentifier organizationalUnitName = new DERObjectIdentifier(id + ".11"); 035 036 // id-SHA1 OBJECT IDENTIFIER ::= 037 // {iso(1) identified-organization(3) oiw(14) secsig(3) algorithms(2) 26 } // 038 static final DERObjectIdentifier id_SHA1 = new DERObjectIdentifier("1.3.14.3.2.26"); 039 040 // 041 // ripemd160 OBJECT IDENTIFIER ::= 042 // {iso(1) identified-organization(3) TeleTrust(36) algorithm(3) hashAlgorithm(2) RIPEMD-160(1)} 043 // 044 static final DERObjectIdentifier ripemd160 = new DERObjectIdentifier("1.3.36.3.2.1"); 045 046 // 047 // ripemd160WithRSAEncryption OBJECT IDENTIFIER ::= 048 // {iso(1) identified-organization(3) TeleTrust(36) algorithm(3) signatureAlgorithm(3) rsaSignature(1) rsaSignatureWithripemd160(2) } 049 // 050 static final DERObjectIdentifier ripemd160WithRSAEncryption = new DERObjectIdentifier("1.3.36.3.3.1.2"); 051 052 053 static final DERObjectIdentifier id_ea_rsa = new DERObjectIdentifier("2.5.8.1.1"); 054 055 // 056 // OID for ocsp uri in AuthorityInformationAccess extension 057 // 058 static final DERObjectIdentifier ocspAccessMethod = new DERObjectIdentifier("1.3.6.1.5.5.7.48.1"); 059 } 060