1 package org.bouncycastle.asn1.x509;
2 
3 import org.bouncycastle.asn1.ASN1ObjectIdentifier;
4 
5 public interface X509ObjectIdentifiers
6 {
7 
8     /** Subject RDN components: commonName = 2.5.4.3 */
9     static final ASN1ObjectIdentifier    commonName              = new ASN1ObjectIdentifier("2.5.4.3");
10     /** Subject RDN components: countryName = 2.5.4.6 */
11     static final ASN1ObjectIdentifier    countryName             = new ASN1ObjectIdentifier("2.5.4.6");
12     /** Subject RDN components: localityName = 2.5.4.7 */
13     static final ASN1ObjectIdentifier    localityName            = new ASN1ObjectIdentifier("2.5.4.7");
14     /** Subject RDN components: stateOrProvinceName = 2.5.4.8 */
15     static final ASN1ObjectIdentifier    stateOrProvinceName     = new ASN1ObjectIdentifier("2.5.4.8");
16     /** Subject RDN components: organization = 2.5.4.10 */
17     static final ASN1ObjectIdentifier    organization            = new ASN1ObjectIdentifier("2.5.4.10");
18     /** Subject RDN components: organizationalUnitName = 2.5.4.11 */
19     static final ASN1ObjectIdentifier    organizationalUnitName  = new ASN1ObjectIdentifier("2.5.4.11");
20 
21     /** Subject RDN components: telephone_number = 2.5.4.20 */
22     static final ASN1ObjectIdentifier    id_at_telephoneNumber   = new ASN1ObjectIdentifier("2.5.4.20");
23     /** Subject RDN components: name = 2.5.4.41 */
24     static final ASN1ObjectIdentifier    id_at_name              = new ASN1ObjectIdentifier("2.5.4.41");
25 
26     /**
27      * id-SHA1 OBJECT IDENTIFIER ::=
28      *   {iso(1) identified-organization(3) oiw(14) secsig(3) algorithms(2) 26 }
29      * <p>
30      * OID: 1.3.14.3.2.27
31      */
32     static final ASN1ObjectIdentifier    id_SHA1                 = new ASN1ObjectIdentifier("1.3.14.3.2.26");
33 
34     /**
35      * ripemd160 OBJECT IDENTIFIER ::=
36      *      {iso(1) identified-organization(3) TeleTrust(36) algorithm(3) hashAlgorithm(2) RIPEMD-160(1)}
37      * <p>
38      * OID: 1.3.36.3.2.1
39      */
40     static final ASN1ObjectIdentifier    ripemd160               = new ASN1ObjectIdentifier("1.3.36.3.2.1");
41 
42     /**
43      * ripemd160WithRSAEncryption OBJECT IDENTIFIER ::=
44      *      {iso(1) identified-organization(3) TeleTrust(36) algorithm(3) signatureAlgorithm(3) rsaSignature(1) rsaSignatureWithripemd160(2) }
45      * <p>
46      * OID: 1.3.36.3.3.1.2
47      */
48     static final ASN1ObjectIdentifier    ripemd160WithRSAEncryption = new ASN1ObjectIdentifier("1.3.36.3.3.1.2");
49 
50 
51     /** OID: 2.5.8.1.1  */
52     static final ASN1ObjectIdentifier    id_ea_rsa = new ASN1ObjectIdentifier("2.5.8.1.1");
53 
54     /** id-pkix OID: 1.3.6.1.5.5.7
55      */
56     static final ASN1ObjectIdentifier  id_pkix = new ASN1ObjectIdentifier("1.3.6.1.5.5.7");
57 
58     /**
59      * private internet extensions; OID = 1.3.6.1.5.5.7.1
60      */
61     static final ASN1ObjectIdentifier  id_pe   = id_pkix.branch("1");
62 
63     /**
64      * ISO ARC for standard certificate and CRL extensions
65      * <p>
66      * OID: 2.5.29
67      */
68     static final ASN1ObjectIdentifier id_ce = new ASN1ObjectIdentifier("2.5.29");
69 
70     /** id-pkix OID:         1.3.6.1.5.5.7.48  */
71     static final ASN1ObjectIdentifier  id_ad           = id_pkix.branch("48");
72     /** id-ad-caIssuers OID: 1.3.6.1.5.5.7.48.2  */
73     static final ASN1ObjectIdentifier  id_ad_caIssuers = id_ad.branch("2");
74     /** id-ad-ocsp OID:      1.3.6.1.5.5.7.48.1  */
75     static final ASN1ObjectIdentifier  id_ad_ocsp      = id_ad.branch("1");
76 
77     /** OID for ocsp uri in AuthorityInformationAccess extension */
78     static final ASN1ObjectIdentifier ocspAccessMethod = id_ad_ocsp;
79     /** OID for crl uri in AuthorityInformationAccess extension */
80     static final ASN1ObjectIdentifier crlAccessMethod  = id_ad_caIssuers;
81 }
82