01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: */package org.apache.geronimo.crypto.asn1.x509;
17:
18: import org.apache.geronimo.crypto.asn1.DERObjectIdentifier;
19:
20: public interface X509ObjectIdentifiers {
21: //
22: // base id
23: //
24: static final String id = "2.5.4";
25:
26: static final DERObjectIdentifier commonName = new DERObjectIdentifier(
27: id + ".3");
28: static final DERObjectIdentifier countryName = new DERObjectIdentifier(
29: id + ".6");
30: static final DERObjectIdentifier localityName = new DERObjectIdentifier(
31: id + ".7");
32: static final DERObjectIdentifier stateOrProvinceName = new DERObjectIdentifier(
33: id + ".8");
34: static final DERObjectIdentifier organization = new DERObjectIdentifier(
35: id + ".10");
36: static final DERObjectIdentifier organizationalUnitName = new DERObjectIdentifier(
37: id + ".11");
38:
39: // id-SHA1 OBJECT IDENTIFIER ::=
40: // {iso(1) identified-organization(3) oiw(14) secsig(3) algorithms(2) 26 } //
41: static final DERObjectIdentifier id_SHA1 = new DERObjectIdentifier(
42: "1.3.14.3.2.26");
43:
44: //
45: // ripemd160 OBJECT IDENTIFIER ::=
46: // {iso(1) identified-organization(3) TeleTrust(36) algorithm(3) hashAlgorithm(2) RIPEMD-160(1)}
47: //
48: static final DERObjectIdentifier ripemd160 = new DERObjectIdentifier(
49: "1.3.36.3.2.1");
50:
51: //
52: // ripemd160WithRSAEncryption OBJECT IDENTIFIER ::=
53: // {iso(1) identified-organization(3) TeleTrust(36) algorithm(3) signatureAlgorithm(3) rsaSignature(1) rsaSignatureWithripemd160(2) }
54: //
55: static final DERObjectIdentifier ripemd160WithRSAEncryption = new DERObjectIdentifier(
56: "1.3.36.3.3.1.2");
57:
58: static final DERObjectIdentifier id_ea_rsa = new DERObjectIdentifier(
59: "2.5.8.1.1");
60:
61: //
62: // OID for ocsp uri in AuthorityInformationAccess extension
63: //
64: static final DERObjectIdentifier ocspAccessMethod = new DERObjectIdentifier(
65: "1.3.6.1.5.5.7.48.1");
66: }
|