001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.geronimo.crypto.asn1.pkcs;
017:
018: import org.apache.geronimo.crypto.asn1.DERObjectIdentifier;
019:
020: public interface PKCSObjectIdentifiers {
021: //
022: // pkcs-1 OBJECT IDENTIFIER ::= {
023: // iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 1 }
024: //
025: static final String pkcs_1 = "1.2.840.113549.1.1";
026: static final DERObjectIdentifier rsaEncryption = new DERObjectIdentifier(
027: pkcs_1 + ".1");
028: static final DERObjectIdentifier md2WithRSAEncryption = new DERObjectIdentifier(
029: pkcs_1 + ".2");
030: static final DERObjectIdentifier md4WithRSAEncryption = new DERObjectIdentifier(
031: pkcs_1 + ".3");
032: static final DERObjectIdentifier md5WithRSAEncryption = new DERObjectIdentifier(
033: pkcs_1 + ".4");
034: static final DERObjectIdentifier sha1WithRSAEncryption = new DERObjectIdentifier(
035: pkcs_1 + ".5");
036: static final DERObjectIdentifier srsaOAEPEncryptionSET = new DERObjectIdentifier(
037: pkcs_1 + ".6");
038: static final DERObjectIdentifier id_RSAES_OAEP = new DERObjectIdentifier(
039: pkcs_1 + ".7");
040: static final DERObjectIdentifier id_mgf1 = new DERObjectIdentifier(
041: pkcs_1 + ".8");
042: static final DERObjectIdentifier id_pSpecified = new DERObjectIdentifier(
043: pkcs_1 + ".9");
044: static final DERObjectIdentifier id_RSASSA_PSS = new DERObjectIdentifier(
045: pkcs_1 + ".10");
046: static final DERObjectIdentifier sha256WithRSAEncryption = new DERObjectIdentifier(
047: pkcs_1 + ".11");
048: static final DERObjectIdentifier sha384WithRSAEncryption = new DERObjectIdentifier(
049: pkcs_1 + ".12");
050: static final DERObjectIdentifier sha512WithRSAEncryption = new DERObjectIdentifier(
051: pkcs_1 + ".13");
052: static final DERObjectIdentifier sha224WithRSAEncryption = new DERObjectIdentifier(
053: pkcs_1 + ".14");
054:
055: //
056: // pkcs-3 OBJECT IDENTIFIER ::= {
057: // iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 3 }
058: //
059: static final String pkcs_3 = "1.2.840.113549.1.3";
060: static final DERObjectIdentifier dhKeyAgreement = new DERObjectIdentifier(
061: pkcs_3 + ".1");
062:
063: //
064: // pkcs-5 OBJECT IDENTIFIER ::= {
065: // iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 5 }
066: //
067: static final String pkcs_5 = "1.2.840.113549.1.5";
068:
069: static final DERObjectIdentifier pbeWithMD2AndDES_CBC = new DERObjectIdentifier(
070: pkcs_5 + ".1");
071: static final DERObjectIdentifier pbeWithMD2AndRC2_CBC = new DERObjectIdentifier(
072: pkcs_5 + ".4");
073: static final DERObjectIdentifier pbeWithMD5AndDES_CBC = new DERObjectIdentifier(
074: pkcs_5 + ".3");
075: static final DERObjectIdentifier pbeWithMD5AndRC2_CBC = new DERObjectIdentifier(
076: pkcs_5 + ".6");
077: static final DERObjectIdentifier pbeWithSHA1AndDES_CBC = new DERObjectIdentifier(
078: pkcs_5 + ".10");
079: static final DERObjectIdentifier pbeWithSHA1AndRC2_CBC = new DERObjectIdentifier(
080: pkcs_5 + ".11");
081:
082: static final DERObjectIdentifier id_PBES2 = new DERObjectIdentifier(
083: pkcs_5 + ".13");
084:
085: static final DERObjectIdentifier id_PBKDF2 = new DERObjectIdentifier(
086: pkcs_5 + ".12");
087:
088: //
089: // encryptionAlgorithm OBJECT IDENTIFIER ::= {
090: // iso(1) member-body(2) us(840) rsadsi(113549) 3 }
091: //
092: static final String encryptionAlgorithm = "1.2.840.113549.3";
093:
094: static final DERObjectIdentifier des_EDE3_CBC = new DERObjectIdentifier(
095: encryptionAlgorithm + ".7");
096: static final DERObjectIdentifier RC2_CBC = new DERObjectIdentifier(
097: encryptionAlgorithm + ".2");
098:
099: //
100: // object identifiers for digests
101: //
102: static final String digestAlgorithm = "1.2.840.113549.2";
103: //
104: // md2 OBJECT IDENTIFIER ::=
105: // {iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 2}
106: //
107: static final DERObjectIdentifier md2 = new DERObjectIdentifier(
108: digestAlgorithm + ".2");
109:
110: //
111: // md4 OBJECT IDENTIFIER ::=
112: // {iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 4}
113: //
114: static final DERObjectIdentifier md4 = new DERObjectIdentifier(
115: digestAlgorithm + ".4");
116:
117: //
118: // md5 OBJECT IDENTIFIER ::=
119: // {iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 5}
120: //
121: static final DERObjectIdentifier md5 = new DERObjectIdentifier(
122: digestAlgorithm + ".5");
123:
124: static final DERObjectIdentifier id_hmacWithSHA1 = new DERObjectIdentifier(
125: digestAlgorithm + ".7");
126: static final DERObjectIdentifier id_hmacWithSHA224 = new DERObjectIdentifier(
127: digestAlgorithm + ".8");
128: static final DERObjectIdentifier id_hmacWithSHA256 = new DERObjectIdentifier(
129: digestAlgorithm + ".9");
130: static final DERObjectIdentifier id_hmacWithSHA384 = new DERObjectIdentifier(
131: digestAlgorithm + ".10");
132: static final DERObjectIdentifier id_hmacWithSHA512 = new DERObjectIdentifier(
133: digestAlgorithm + ".11");
134:
135: //
136: // pkcs-7 OBJECT IDENTIFIER ::= {
137: // iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 7 }
138: //
139: static final String pkcs_7 = "1.2.840.113549.1.7";
140: static final DERObjectIdentifier data = new DERObjectIdentifier(
141: pkcs_7 + ".1");
142: static final DERObjectIdentifier signedData = new DERObjectIdentifier(
143: pkcs_7 + ".2");
144: static final DERObjectIdentifier envelopedData = new DERObjectIdentifier(
145: pkcs_7 + ".3");
146: static final DERObjectIdentifier signedAndEnvelopedData = new DERObjectIdentifier(
147: pkcs_7 + ".4");
148: static final DERObjectIdentifier digestedData = new DERObjectIdentifier(
149: pkcs_7 + ".5");
150: static final DERObjectIdentifier encryptedData = new DERObjectIdentifier(
151: pkcs_7 + ".6");
152:
153: //
154: // pkcs-9 OBJECT IDENTIFIER ::= {
155: // iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 9 }
156: //
157: static final String pkcs_9 = "1.2.840.113549.1.9";
158:
159: static final DERObjectIdentifier pkcs_9_at_emailAddress = new DERObjectIdentifier(
160: pkcs_9 + ".1");
161: static final DERObjectIdentifier pkcs_9_at_unstructuredName = new DERObjectIdentifier(
162: pkcs_9 + ".2");
163: static final DERObjectIdentifier pkcs_9_at_contentType = new DERObjectIdentifier(
164: pkcs_9 + ".3");
165: static final DERObjectIdentifier pkcs_9_at_messageDigest = new DERObjectIdentifier(
166: pkcs_9 + ".4");
167: static final DERObjectIdentifier pkcs_9_at_signingTime = new DERObjectIdentifier(
168: pkcs_9 + ".5");
169: static final DERObjectIdentifier pkcs_9_at_counterSignature = new DERObjectIdentifier(
170: pkcs_9 + ".6");
171: static final DERObjectIdentifier pkcs_9_at_challengePassword = new DERObjectIdentifier(
172: pkcs_9 + ".7");
173: static final DERObjectIdentifier pkcs_9_at_unstructuredAddress = new DERObjectIdentifier(
174: pkcs_9 + ".8");
175: static final DERObjectIdentifier pkcs_9_at_extendedCertificateAttributes = new DERObjectIdentifier(
176: pkcs_9 + ".9");
177:
178: static final DERObjectIdentifier pkcs_9_at_signingDescription = new DERObjectIdentifier(
179: pkcs_9 + ".13");
180: static final DERObjectIdentifier pkcs_9_at_extensionRequest = new DERObjectIdentifier(
181: pkcs_9 + ".14");
182: static final DERObjectIdentifier pkcs_9_at_smimeCapabilities = new DERObjectIdentifier(
183: pkcs_9 + ".15");
184:
185: static final DERObjectIdentifier pkcs_9_at_friendlyName = new DERObjectIdentifier(
186: pkcs_9 + ".20");
187: static final DERObjectIdentifier pkcs_9_at_localKeyId = new DERObjectIdentifier(
188: pkcs_9 + ".21");
189:
190: static final DERObjectIdentifier x509certType = new DERObjectIdentifier(
191: pkcs_9 + ".22.1");
192:
193: static final DERObjectIdentifier id_alg_PWRI_KEK = new DERObjectIdentifier(
194: pkcs_9 + ".16.3.9");
195:
196: //
197: // SMIME capability sub oids.
198: //
199: static final DERObjectIdentifier preferSignedData = new DERObjectIdentifier(
200: pkcs_9 + ".15.1");
201: static final DERObjectIdentifier canNotDecryptAny = new DERObjectIdentifier(
202: pkcs_9 + ".15.2");
203: static final DERObjectIdentifier sMIMECapabilitiesVersions = new DERObjectIdentifier(
204: pkcs_9 + ".15.3");
205:
206: //
207: // other SMIME attributes
208: //
209:
210: //
211: // id-ct OBJECT IDENTIFIER ::= {iso(1) member-body(2) usa(840)
212: // rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) ct(1)}
213: //
214: static String id_ct = "1.2.840.113549.1.9.16.1";
215:
216: static final DERObjectIdentifier id_ct_TSTInfo = new DERObjectIdentifier(
217: id_ct + ".4");
218: static final DERObjectIdentifier id_ct_compressedData = new DERObjectIdentifier(
219: id_ct + ".9");
220:
221: //
222: // id-cti OBJECT IDENTIFIER ::= {iso(1) member-body(2) usa(840)
223: // rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) cti(6)}
224: //
225: static String id_cti = "1.2.840.113549.1.9.16.6";
226:
227: static final DERObjectIdentifier id_cti_ets_proofOfOrigin = new DERObjectIdentifier(
228: id_cti + ".1");
229: static final DERObjectIdentifier id_cti_ets_proofOfReceipt = new DERObjectIdentifier(
230: id_cti + ".2");
231: static final DERObjectIdentifier id_cti_ets_proofOfDelivery = new DERObjectIdentifier(
232: id_cti + ".3");
233: static final DERObjectIdentifier id_cti_ets_proofOfSender = new DERObjectIdentifier(
234: id_cti + ".4");
235: static final DERObjectIdentifier id_cti_ets_proofOfApproval = new DERObjectIdentifier(
236: id_cti + ".5");
237: static final DERObjectIdentifier id_cti_ets_proofOfCreation = new DERObjectIdentifier(
238: id_cti + ".6");
239:
240: //
241: // id-aa OBJECT IDENTIFIER ::= {iso(1) member-body(2) usa(840)
242: // rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) attributes(2)}
243: //
244: static String id_aa = "1.2.840.113549.1.9.16.2";
245:
246: /*
247: * id-aa-encrypKeyPref OBJECT IDENTIFIER ::= {id-aa 11}
248: *
249: */
250: static DERObjectIdentifier id_aa_encrypKeyPref = new DERObjectIdentifier(
251: id_aa + ".11");
252: static DERObjectIdentifier id_aa_signingCertificate = new DERObjectIdentifier(
253: id_aa + ".12");
254:
255: static final DERObjectIdentifier id_aa_contentIdentifier = new DERObjectIdentifier(
256: id_aa + ".7"); // See RFC 2634
257: static final DERObjectIdentifier id_aa_signatureTimeStampToken = new DERObjectIdentifier(
258: id_aa + ".14"); // See RFC 3126
259: static final DERObjectIdentifier id_aa_sigPolicyId = new DERObjectIdentifier(
260: id_aa + ".15"); // See RFC 3126
261: static final DERObjectIdentifier id_aa_commitmentType = new DERObjectIdentifier(
262: id_aa + ".16"); // See RFC 3126
263: static final DERObjectIdentifier id_aa_signerLocation = new DERObjectIdentifier(
264: id_aa + ".17"); // See RFC 3126
265: static final DERObjectIdentifier id_aa_otherSigCert = new DERObjectIdentifier(
266: id_aa + ".19"); // See RFC 3126
267: //
268: // pkcs-12 OBJECT IDENTIFIER ::= {
269: // iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 12 }
270: //
271: static final String pkcs_12 = "1.2.840.113549.1.12";
272: static final String bagtypes = pkcs_12 + ".10.1";
273:
274: static final DERObjectIdentifier keyBag = new DERObjectIdentifier(
275: bagtypes + ".1");
276: static final DERObjectIdentifier pkcs8ShroudedKeyBag = new DERObjectIdentifier(
277: bagtypes + ".2");
278: static final DERObjectIdentifier certBag = new DERObjectIdentifier(
279: bagtypes + ".3");
280: static final DERObjectIdentifier crlBag = new DERObjectIdentifier(
281: bagtypes + ".4");
282: static final DERObjectIdentifier secretBag = new DERObjectIdentifier(
283: bagtypes + ".5");
284: static final DERObjectIdentifier safeContentsBag = new DERObjectIdentifier(
285: bagtypes + ".6");
286:
287: static final String pkcs_12PbeIds = pkcs_12 + ".1";
288:
289: static final DERObjectIdentifier pbeWithSHAAnd128BitRC4 = new DERObjectIdentifier(
290: pkcs_12PbeIds + ".1");
291: static final DERObjectIdentifier pbeWithSHAAnd40BitRC4 = new DERObjectIdentifier(
292: pkcs_12PbeIds + ".2");
293: static final DERObjectIdentifier pbeWithSHAAnd3_KeyTripleDES_CBC = new DERObjectIdentifier(
294: pkcs_12PbeIds + ".3");
295: static final DERObjectIdentifier pbeWithSHAAnd2_KeyTripleDES_CBC = new DERObjectIdentifier(
296: pkcs_12PbeIds + ".4");
297: static final DERObjectIdentifier pbeWithSHAAnd128BitRC2_CBC = new DERObjectIdentifier(
298: pkcs_12PbeIds + ".5");
299: static final DERObjectIdentifier pbewithSHAAnd40BitRC2_CBC = new DERObjectIdentifier(
300: pkcs_12PbeIds + ".6");
301:
302: }
|