001package org.apache.commons.ssl.org.bouncycastle.asn1.x509;
002
003import org.apache.commons.ssl.org.bouncycastle.asn1.ASN1ObjectIdentifier;
004
005public interface X509ObjectIdentifiers
006{
007    
008    /** Subject RDN components: commonName = 2.5.4.3 */
009    static final ASN1ObjectIdentifier    commonName              = new ASN1ObjectIdentifier("2.5.4.3");
010    /** Subject RDN components: countryName = 2.5.4.6 */
011    static final ASN1ObjectIdentifier    countryName             = new ASN1ObjectIdentifier("2.5.4.6");
012    /** Subject RDN components: localityName = 2.5.4.7 */
013    static final ASN1ObjectIdentifier    localityName            = new ASN1ObjectIdentifier("2.5.4.7");
014    /** Subject RDN components: stateOrProvinceName = 2.5.4.8 */
015    static final ASN1ObjectIdentifier    stateOrProvinceName     = new ASN1ObjectIdentifier("2.5.4.8");
016    /** Subject RDN components: organization = 2.5.4.10 */
017    static final ASN1ObjectIdentifier    organization            = new ASN1ObjectIdentifier("2.5.4.10");
018    /** Subject RDN components: organizationalUnitName = 2.5.4.11 */
019    static final ASN1ObjectIdentifier    organizationalUnitName  = new ASN1ObjectIdentifier("2.5.4.11");
020
021    /** Subject RDN components: telephone_number = 2.5.4.20 */
022    static final ASN1ObjectIdentifier    id_at_telephoneNumber   = new ASN1ObjectIdentifier("2.5.4.20");
023    /** Subject RDN components: name = 2.5.4.41 */
024    static final ASN1ObjectIdentifier    id_at_name              = new ASN1ObjectIdentifier("2.5.4.41");
025
026    /**
027     * id-SHA1 OBJECT IDENTIFIER ::=    
028     *   {iso(1) identified-organization(3) oiw(14) secsig(3) algorithms(2) 26 }
029     * <p>
030     * OID: 1.3.14.3.2.27
031     */
032    static final ASN1ObjectIdentifier    id_SHA1                 = new ASN1ObjectIdentifier("1.3.14.3.2.26");
033
034    /**
035     * ripemd160 OBJECT IDENTIFIER ::=
036     *      {iso(1) identified-organization(3) TeleTrust(36) algorithm(3) hashAlgorithm(2) RIPEMD-160(1)}
037     * <p>
038     * OID: 1.3.36.3.2.1
039     */
040    static final ASN1ObjectIdentifier    ripemd160               = new ASN1ObjectIdentifier("1.3.36.3.2.1");
041
042    /**
043     * ripemd160WithRSAEncryption OBJECT IDENTIFIER ::=
044     *      {iso(1) identified-organization(3) TeleTrust(36) algorithm(3) signatureAlgorithm(3) rsaSignature(1) rsaSignatureWithripemd160(2) }
045     * <p>
046     * OID: 1.3.36.3.3.1.2
047     */
048    static final ASN1ObjectIdentifier    ripemd160WithRSAEncryption = new ASN1ObjectIdentifier("1.3.36.3.3.1.2");
049
050
051    /** OID: 2.5.8.1.1  */
052    static final ASN1ObjectIdentifier    id_ea_rsa = new ASN1ObjectIdentifier("2.5.8.1.1");
053    
054    /** id-pkix OID: 1.3.6.1.5.5.7
055     */
056    static final ASN1ObjectIdentifier  id_pkix = new ASN1ObjectIdentifier("1.3.6.1.5.5.7");
057
058    /**
059     * private internet extensions; OID = 1.3.6.1.5.5.7.1
060     */
061    static final ASN1ObjectIdentifier  id_pe   = id_pkix.branch("1");
062
063    /**
064     * ISO ARC for standard certificate and CRL extensions
065     * <p>
066     * OID: 2.5.29
067     */
068    static final ASN1ObjectIdentifier id_ce = new ASN1ObjectIdentifier("2.5.29");
069
070    /** id-pkix OID:         1.3.6.1.5.5.7.48  */
071    static final ASN1ObjectIdentifier  id_ad           = id_pkix.branch("48");
072    /** id-ad-caIssuers OID: 1.3.6.1.5.5.7.48.2  */
073    static final ASN1ObjectIdentifier  id_ad_caIssuers = id_ad.branch("2");
074    /** id-ad-ocsp OID:      1.3.6.1.5.5.7.48.1  */
075    static final ASN1ObjectIdentifier  id_ad_ocsp      = id_ad.branch("1");
076
077    /** OID for ocsp uri in AuthorityInformationAccess extension */
078    static final ASN1ObjectIdentifier ocspAccessMethod = id_ad_ocsp;
079    /** OID for crl uri in AuthorityInformationAccess extension */
080    static final ASN1ObjectIdentifier crlAccessMethod  = id_ad_caIssuers;
081}