PKCSObjectIdentifiers.java revision b61a96e7ef1a78acf013bbf08fe537e5b5f129ca
1b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallampackage org.bouncycastle.asn1.pkcs; 2b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 3b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallamimport org.bouncycastle.asn1.DERObjectIdentifier; 4b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 5b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallampublic interface PKCSObjectIdentifiers 6b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam{ 7b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 8b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // pkcs-1 OBJECT IDENTIFIER ::= { 9b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 1 } 10b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 11b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final String pkcs_1 = "1.2.840.113549.1.1"; 12b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier rsaEncryption = new DERObjectIdentifier(pkcs_1 + ".1"); 13b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // BEGIN android-removed 14b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // Dropping MD2 15b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // static final DERObjectIdentifier md2WithRSAEncryption = new DERObjectIdentifier(pkcs_1 + ".2"); 16b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // END android-removed 17b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier md4WithRSAEncryption = new DERObjectIdentifier(pkcs_1 + ".3"); 18b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier md5WithRSAEncryption = new DERObjectIdentifier(pkcs_1 + ".4"); 19b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier sha1WithRSAEncryption = new DERObjectIdentifier(pkcs_1 + ".5"); 20b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier srsaOAEPEncryptionSET = new DERObjectIdentifier(pkcs_1 + ".6"); 21b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_RSAES_OAEP = new DERObjectIdentifier(pkcs_1 + ".7"); 22b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_mgf1 = new DERObjectIdentifier(pkcs_1 + ".8"); 23b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_pSpecified = new DERObjectIdentifier(pkcs_1 + ".9"); 24b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_RSASSA_PSS = new DERObjectIdentifier(pkcs_1 + ".10"); 25b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier sha256WithRSAEncryption = new DERObjectIdentifier(pkcs_1 + ".11"); 26b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier sha384WithRSAEncryption = new DERObjectIdentifier(pkcs_1 + ".12"); 27b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier sha512WithRSAEncryption = new DERObjectIdentifier(pkcs_1 + ".13"); 28b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier sha224WithRSAEncryption = new DERObjectIdentifier(pkcs_1 + ".14"); 29b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 30b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 31b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // pkcs-3 OBJECT IDENTIFIER ::= { 32b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 3 } 33b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 34b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final String pkcs_3 = "1.2.840.113549.1.3"; 35b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier dhKeyAgreement = new DERObjectIdentifier(pkcs_3 + ".1"); 36b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 37b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 38b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // pkcs-5 OBJECT IDENTIFIER ::= { 39b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 5 } 40b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 41b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final String pkcs_5 = "1.2.840.113549.1.5"; 42b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 43b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pbeWithMD2AndDES_CBC = new DERObjectIdentifier(pkcs_5 + ".1"); 44b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pbeWithMD2AndRC2_CBC = new DERObjectIdentifier(pkcs_5 + ".4"); 45b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pbeWithMD5AndDES_CBC = new DERObjectIdentifier(pkcs_5 + ".3"); 46b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pbeWithMD5AndRC2_CBC = new DERObjectIdentifier(pkcs_5 + ".6"); 47b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pbeWithSHA1AndDES_CBC = new DERObjectIdentifier(pkcs_5 + ".10"); 48b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pbeWithSHA1AndRC2_CBC = new DERObjectIdentifier(pkcs_5 + ".11"); 49b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 50b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_PBES2 = new DERObjectIdentifier(pkcs_5 + ".13"); 51b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 52b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_PBKDF2 = new DERObjectIdentifier(pkcs_5 + ".12"); 53b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 54b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 55b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // encryptionAlgorithm OBJECT IDENTIFIER ::= { 56b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // iso(1) member-body(2) us(840) rsadsi(113549) 3 } 57b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 58b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final String encryptionAlgorithm = "1.2.840.113549.3"; 59b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 60b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier des_EDE3_CBC = new DERObjectIdentifier(encryptionAlgorithm + ".7"); 61b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier RC2_CBC = new DERObjectIdentifier(encryptionAlgorithm + ".2"); 62b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 63b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 64b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // object identifiers for digests 65b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 66b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final String digestAlgorithm = "1.2.840.113549.2"; 67b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 68b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // md2 OBJECT IDENTIFIER ::= 69b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // {iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 2} 70b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 71b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // BEGIN android-removed 72b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // Dropping MD2 73b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // static final DERObjectIdentifier md2 = new DERObjectIdentifier(digestAlgorithm + ".2"); 74b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // END android-removed 75b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 76b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 77b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // md4 OBJECT IDENTIFIER ::= 78b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // {iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 4} 79b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 80b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier md4 = new DERObjectIdentifier(digestAlgorithm + ".4"); 81b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 82b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 83b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // md5 OBJECT IDENTIFIER ::= 84b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // {iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 5} 85b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 86b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier md5 = new DERObjectIdentifier(digestAlgorithm + ".5"); 87b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 88b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_hmacWithSHA1 = new DERObjectIdentifier(digestAlgorithm + ".7"); 89b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_hmacWithSHA224 = new DERObjectIdentifier(digestAlgorithm + ".8"); 90b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_hmacWithSHA256 = new DERObjectIdentifier(digestAlgorithm + ".9"); 91b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_hmacWithSHA384 = new DERObjectIdentifier(digestAlgorithm + ".10"); 92b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_hmacWithSHA512 = new DERObjectIdentifier(digestAlgorithm + ".11"); 93b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 94b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 95b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // pkcs-7 OBJECT IDENTIFIER ::= { 96b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 7 } 97b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 98b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final String pkcs_7 = "1.2.840.113549.1.7"; 99b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier data = new DERObjectIdentifier(pkcs_7 + ".1"); 100b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier signedData = new DERObjectIdentifier(pkcs_7 + ".2"); 101b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier envelopedData = new DERObjectIdentifier(pkcs_7 + ".3"); 102b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier signedAndEnvelopedData = new DERObjectIdentifier(pkcs_7 + ".4"); 103b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier digestedData = new DERObjectIdentifier(pkcs_7 + ".5"); 104b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier encryptedData = new DERObjectIdentifier(pkcs_7 + ".6"); 105b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 106b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 107b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // pkcs-9 OBJECT IDENTIFIER ::= { 108b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 9 } 109b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 110b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final String pkcs_9 = "1.2.840.113549.1.9"; 111b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 112b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pkcs_9_at_emailAddress = new DERObjectIdentifier(pkcs_9 + ".1"); 113b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pkcs_9_at_unstructuredName = new DERObjectIdentifier(pkcs_9 + ".2"); 114b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pkcs_9_at_contentType = new DERObjectIdentifier(pkcs_9 + ".3"); 115b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pkcs_9_at_messageDigest = new DERObjectIdentifier(pkcs_9 + ".4"); 116b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pkcs_9_at_signingTime = new DERObjectIdentifier(pkcs_9 + ".5"); 117b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pkcs_9_at_counterSignature = new DERObjectIdentifier(pkcs_9 + ".6"); 118b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pkcs_9_at_challengePassword = new DERObjectIdentifier(pkcs_9 + ".7"); 119b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pkcs_9_at_unstructuredAddress = new DERObjectIdentifier(pkcs_9 + ".8"); 120b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pkcs_9_at_extendedCertificateAttributes = new DERObjectIdentifier(pkcs_9 + ".9"); 121b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 122b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pkcs_9_at_signingDescription = new DERObjectIdentifier(pkcs_9 + ".13"); 123b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pkcs_9_at_extensionRequest = new DERObjectIdentifier(pkcs_9 + ".14"); 124b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pkcs_9_at_smimeCapabilities = new DERObjectIdentifier(pkcs_9 + ".15"); 125b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 126b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pkcs_9_at_friendlyName = new DERObjectIdentifier(pkcs_9 + ".20"); 127b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pkcs_9_at_localKeyId = new DERObjectIdentifier(pkcs_9 + ".21"); 128b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 129b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier x509certType = new DERObjectIdentifier(pkcs_9 + ".22.1"); 130b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 131b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_alg_PWRI_KEK = new DERObjectIdentifier(pkcs_9 + ".16.3.9"); 132b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 133b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 134b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // SMIME capability sub oids. 135b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 136b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier preferSignedData = new DERObjectIdentifier(pkcs_9 + ".15.1"); 137b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier canNotDecryptAny = new DERObjectIdentifier(pkcs_9 + ".15.2"); 138b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier sMIMECapabilitiesVersions = new DERObjectIdentifier(pkcs_9 + ".15.3"); 139b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 140b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 141b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // other SMIME attributes 142b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 143b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_aa_receiptRequest = new DERObjectIdentifier(pkcs_9 + ".16.2.1"); 144b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 145b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 146b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // id-ct OBJECT IDENTIFIER ::= {iso(1) member-body(2) usa(840) 147b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) ct(1)} 148b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 149b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static String id_ct = "1.2.840.113549.1.9.16.1"; 150b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 151b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_ct_TSTInfo = new DERObjectIdentifier(id_ct + ".4"); 152b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_ct_compressedData = new DERObjectIdentifier(id_ct + ".9"); 153b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 154b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 155b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // id-cti OBJECT IDENTIFIER ::= {iso(1) member-body(2) usa(840) 156b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6)} 157b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 158b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static String id_cti = "1.2.840.113549.1.9.16.6"; 159b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 160b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_cti_ets_proofOfOrigin = new DERObjectIdentifier(id_cti + ".1"); 161b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_cti_ets_proofOfReceipt = new DERObjectIdentifier(id_cti + ".2"); 162b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_cti_ets_proofOfDelivery = new DERObjectIdentifier(id_cti + ".3"); 163b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_cti_ets_proofOfSender = new DERObjectIdentifier(id_cti + ".4"); 164b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_cti_ets_proofOfApproval = new DERObjectIdentifier(id_cti + ".5"); 165b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_cti_ets_proofOfCreation = new DERObjectIdentifier(id_cti + ".6"); 166b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 167b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 168b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // id-aa OBJECT IDENTIFIER ::= {iso(1) member-body(2) usa(840) 169b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) attributes(2)} 170b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 171b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static String id_aa = "1.2.840.113549.1.9.16.2"; 172b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 173b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam /* 174b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam * id-aa-encrypKeyPref OBJECT IDENTIFIER ::= {id-aa 11} 175b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam * 176b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam */ 177b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static DERObjectIdentifier id_aa_encrypKeyPref = new DERObjectIdentifier(id_aa + ".11"); 178b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static DERObjectIdentifier id_aa_signingCertificate = new DERObjectIdentifier(id_aa + ".12"); 179b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 180b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_aa_contentIdentifier = new DERObjectIdentifier(id_aa + ".7"); // See RFC 2634 181b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_aa_signatureTimeStampToken = new DERObjectIdentifier(id_aa + ".14"); // See RFC 3126 182b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_aa_sigPolicyId = new DERObjectIdentifier(id_aa + ".15"); // See RFC 3126 183b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_aa_commitmentType = new DERObjectIdentifier(id_aa + ".16"); // See RFC 3126 184b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_aa_signerLocation = new DERObjectIdentifier(id_aa + ".17"); // See RFC 3126 185b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier id_aa_otherSigCert = new DERObjectIdentifier(id_aa + ".19"); // See RFC 3126 186b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 187b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // pkcs-12 OBJECT IDENTIFIER ::= { 188b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 12 } 189b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam // 190b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final String pkcs_12 = "1.2.840.113549.1.12"; 191b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final String bagtypes = pkcs_12 + ".10.1"; 192b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 193b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier keyBag = new DERObjectIdentifier(bagtypes + ".1"); 194b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pkcs8ShroudedKeyBag = new DERObjectIdentifier(bagtypes + ".2"); 195b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier certBag = new DERObjectIdentifier(bagtypes + ".3"); 196b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier crlBag = new DERObjectIdentifier(bagtypes + ".4"); 197b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier secretBag = new DERObjectIdentifier(bagtypes + ".5"); 198b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier safeContentsBag = new DERObjectIdentifier(bagtypes + ".6"); 199b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 200b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final String pkcs_12PbeIds = pkcs_12 + ".1"; 201b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 202b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pbeWithSHAAnd128BitRC4 = new DERObjectIdentifier(pkcs_12PbeIds + ".1"); 203b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pbeWithSHAAnd40BitRC4 = new DERObjectIdentifier(pkcs_12PbeIds + ".2"); 204b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pbeWithSHAAnd3_KeyTripleDES_CBC = new DERObjectIdentifier(pkcs_12PbeIds + ".3"); 205b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pbeWithSHAAnd2_KeyTripleDES_CBC = new DERObjectIdentifier(pkcs_12PbeIds + ".4"); 206b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pbeWithSHAAnd128BitRC2_CBC = new DERObjectIdentifier(pkcs_12PbeIds + ".5"); 207b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam static final DERObjectIdentifier pbewithSHAAnd40BitRC2_CBC = new DERObjectIdentifier(pkcs_12PbeIds + ".6"); 208b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 209b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam} 210b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam 211