01: package org.bouncycastle.asn1.x509;
02:
03: import org.bouncycastle.asn1.DERObjectIdentifier;
04:
05: public interface X509ObjectIdentifiers {
06: //
07: // base id
08: //
09: static final String id = "2.5.4";
10:
11: static final DERObjectIdentifier commonName = new DERObjectIdentifier(
12: id + ".3");
13: static final DERObjectIdentifier countryName = new DERObjectIdentifier(
14: id + ".6");
15: static final DERObjectIdentifier localityName = new DERObjectIdentifier(
16: id + ".7");
17: static final DERObjectIdentifier stateOrProvinceName = new DERObjectIdentifier(
18: id + ".8");
19: static final DERObjectIdentifier organization = new DERObjectIdentifier(
20: id + ".10");
21: static final DERObjectIdentifier organizationalUnitName = new DERObjectIdentifier(
22: id + ".11");
23:
24: // id-SHA1 OBJECT IDENTIFIER ::=
25: // {iso(1) identified-organization(3) oiw(14) secsig(3) algorithms(2) 26 } //
26: static final DERObjectIdentifier id_SHA1 = new DERObjectIdentifier(
27: "1.3.14.3.2.26");
28:
29: //
30: // ripemd160 OBJECT IDENTIFIER ::=
31: // {iso(1) identified-organization(3) TeleTrust(36) algorithm(3) hashAlgorithm(2) RIPEMD-160(1)}
32: //
33: static final DERObjectIdentifier ripemd160 = new DERObjectIdentifier(
34: "1.3.36.3.2.1");
35:
36: //
37: // ripemd160WithRSAEncryption OBJECT IDENTIFIER ::=
38: // {iso(1) identified-organization(3) TeleTrust(36) algorithm(3) signatureAlgorithm(3) rsaSignature(1) rsaSignatureWithripemd160(2) }
39: //
40: static final DERObjectIdentifier ripemd160WithRSAEncryption = new DERObjectIdentifier(
41: "1.3.36.3.3.1.2");
42:
43: static final DERObjectIdentifier id_ea_rsa = new DERObjectIdentifier(
44: "2.5.8.1.1");
45:
46: // id-pkix
47: static final DERObjectIdentifier id_pkix = new DERObjectIdentifier(
48: "1.3.6.1.5.5.7");
49:
50: //
51: // private internet extensions
52: //
53: static final DERObjectIdentifier id_pe = new DERObjectIdentifier(
54: id_pkix + ".1");
55:
56: //
57: // authority information access
58: //
59: static final DERObjectIdentifier id_ad = new DERObjectIdentifier(
60: id_pkix + ".48");
61: static final DERObjectIdentifier id_ad_caIssuers = new DERObjectIdentifier(
62: id_ad + ".2");
63: static final DERObjectIdentifier id_ad_ocsp = new DERObjectIdentifier(
64: id_ad + ".1");
65:
66: //
67: // OID for ocsp and crl uri in AuthorityInformationAccess extension
68: //
69: static final DERObjectIdentifier ocspAccessMethod = id_ad_ocsp;
70: static final DERObjectIdentifier crlAccessMethod = id_ad_caIssuers;
71: }
|