KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > maverick > crypto > asn1 > pkcs > PKCSObjectIdentifiers


1 /*
2  * SSL-Explorer
3  *
4  * Copyright (C) 2003-2006 3SP LTD. All Rights Reserved
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */

19             
20 package com.maverick.crypto.asn1.pkcs;
21
22 import com.maverick.crypto.asn1.DERObjectIdentifier;
23
24 public interface PKCSObjectIdentifiers
25 {
26     //
27
// pkcs-1 OBJECT IDENTIFIER ::= {
28
// iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 1 }
29
//
30
static final String JavaDoc pkcs_1 = "1.2.840.113549.1.1";
31     static final DERObjectIdentifier rsaEncryption = new DERObjectIdentifier(pkcs_1 + ".1");
32     static final DERObjectIdentifier md2WithRSAEncryption = new DERObjectIdentifier(pkcs_1 + ".2");
33     static final DERObjectIdentifier md4WithRSAEncryption = new DERObjectIdentifier(pkcs_1 + ".3");
34     static final DERObjectIdentifier md5WithRSAEncryption = new DERObjectIdentifier(pkcs_1 + ".4");
35     static final DERObjectIdentifier sha1WithRSAEncryption = new DERObjectIdentifier(pkcs_1 + ".5");
36     static final DERObjectIdentifier srsaOAEPEncryptionSET = new DERObjectIdentifier(pkcs_1 + ".6");
37     static final DERObjectIdentifier sha256WithRSAEncryption = new DERObjectIdentifier(pkcs_1 + ".11");
38     static final DERObjectIdentifier sha384WithRSAEncryption = new DERObjectIdentifier(pkcs_1 + ".12");
39     static final DERObjectIdentifier sha512WithRSAEncryption = new DERObjectIdentifier(pkcs_1 + ".13");
40
41     //
42
// pkcs-3 OBJECT IDENTIFIER ::= {
43
// iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 3 }
44
//
45
static final String JavaDoc pkcs_3 = "1.2.840.113549.1.3";
46     static final DERObjectIdentifier dhKeyAgreement = new DERObjectIdentifier(pkcs_3 + ".1");
47
48     //
49
// pkcs-5 OBJECT IDENTIFIER ::= {
50
// iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 5 }
51
//
52
static final String JavaDoc pkcs_5 = "1.2.840.113549.1.5";
53
54     static final DERObjectIdentifier id_PBES2 = new DERObjectIdentifier(pkcs_5 + ".13");
55
56     static final DERObjectIdentifier id_PBKDF2 = new DERObjectIdentifier(pkcs_5 + ".12");
57
58     //
59
// encryptionAlgorithm OBJECT IDENTIFIER ::= {
60
// iso(1) member-body(2) us(840) rsadsi(113549) 3 }
61
//
62
static final String JavaDoc encryptionAlgorithm = "1.2.840.113549.3";
63
64     static final DERObjectIdentifier des_EDE3_CBC = new DERObjectIdentifier(encryptionAlgorithm + ".7");
65     static final DERObjectIdentifier RC2_CBC = new DERObjectIdentifier(encryptionAlgorithm + ".2");
66
67     //
68
// object identifiers for digests
69
//
70

71     //
72
// md2 OBJECT IDENTIFIER ::=
73
// {iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 2}
74
//
75
static final DERObjectIdentifier md2 = new DERObjectIdentifier("1.2.840.113549.2.2");
76
77     //
78
// md5 OBJECT IDENTIFIER ::=
79
// {iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 5}
80
//
81
static final DERObjectIdentifier md5 = new DERObjectIdentifier("1.2.840.113549.2.5");
82
83     //
84
// pkcs-7 OBJECT IDENTIFIER ::= {
85
// iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 7 }
86
//
87
static final String JavaDoc pkcs_7 = "1.2.840.113549.1.7";
88     static final DERObjectIdentifier data = new DERObjectIdentifier(pkcs_7 + ".1");
89     static final DERObjectIdentifier signedData = new DERObjectIdentifier(pkcs_7 + ".2");
90     static final DERObjectIdentifier envelopedData = new DERObjectIdentifier(pkcs_7 + ".3");
91     static final DERObjectIdentifier signedAndEnvelopedData = new DERObjectIdentifier(pkcs_7 + ".4");
92     static final DERObjectIdentifier digestedData = new DERObjectIdentifier(pkcs_7 + ".5");
93     static final DERObjectIdentifier encryptedData = new DERObjectIdentifier(pkcs_7 + ".6");
94
95     //
96
// pkcs-9 OBJECT IDENTIFIER ::= {
97
// iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 9 }
98
//
99
static final String JavaDoc pkcs_9 = "1.2.840.113549.1.9";
100
101     static final DERObjectIdentifier pkcs_9_at_emailAddress = new DERObjectIdentifier(pkcs_9 + ".1");
102     static final DERObjectIdentifier pkcs_9_at_unstructuredName = new DERObjectIdentifier(pkcs_9 + ".2");
103     static final DERObjectIdentifier pkcs_9_at_contentType = new DERObjectIdentifier(pkcs_9 + ".3");
104     static final DERObjectIdentifier pkcs_9_at_messageDigest = new DERObjectIdentifier(pkcs_9 + ".4");
105     static final DERObjectIdentifier pkcs_9_at_signingTime = new DERObjectIdentifier(pkcs_9 + ".5");
106     static final DERObjectIdentifier pkcs_9_at_counterSignature = new DERObjectIdentifier(pkcs_9 + ".6");
107     static final DERObjectIdentifier pkcs_9_at_challengePassword = new DERObjectIdentifier(pkcs_9 + ".7");
108     static final DERObjectIdentifier pkcs_9_at_unstructuredAddress = new DERObjectIdentifier(pkcs_9 + ".8");
109     static final DERObjectIdentifier pkcs_9_at_extendedCertificateAttributes = new DERObjectIdentifier(pkcs_9 + ".9");
110
111     static final DERObjectIdentifier pkcs_9_at_signingDescription = new DERObjectIdentifier(pkcs_9 + ".13");
112     static final DERObjectIdentifier pkcs_9_at_extensionRequest = new DERObjectIdentifier(pkcs_9 + ".14");
113     static final DERObjectIdentifier pkcs_9_at_smimeCapabilities = new DERObjectIdentifier(pkcs_9 + ".15");
114
115     static final DERObjectIdentifier pkcs_9_at_friendlyName = new DERObjectIdentifier(pkcs_9 + ".20");
116     static final DERObjectIdentifier pkcs_9_at_localKeyId = new DERObjectIdentifier(pkcs_9 + ".21");
117
118     static final DERObjectIdentifier x509certType = new DERObjectIdentifier(pkcs_9 + ".22.1");
119
120     static final DERObjectIdentifier id_ct_compressedData = new DERObjectIdentifier(pkcs_9 + ".16.1.9");
121
122     static final DERObjectIdentifier id_alg_PWRI_KEK = new DERObjectIdentifier(pkcs_9 + ".16.3.9");
123
124     //
125
// SMIME capability sub oids.
126
//
127
static final DERObjectIdentifier preferSignedData = new DERObjectIdentifier(pkcs_9 + ".15.1");
128     static final DERObjectIdentifier canNotDecryptAny = new DERObjectIdentifier(pkcs_9 + ".15.2");
129     static final DERObjectIdentifier sMIMECapabilitiesVersions = new DERObjectIdentifier(pkcs_9 + ".15.3");
130
131     //
132
// other SMIME attributes
133
//
134

135     //
136
// id-aa OBJECT IDENTIFIER ::= {iso(1) member-body(2) usa(840)
137
// rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) attributes(2)}
138
//
139
static String JavaDoc id_aa = "1.2.840.113549.1.9.16.2";
140
141     /*
142      * id-aa-encrypKeyPref OBJECT IDENTIFIER ::= {id-aa 11}
143      *
144      */

145     static DERObjectIdentifier id_aa_encrypKeyPref = new DERObjectIdentifier(id_aa + ".11");
146
147     //
148
// pkcs-12 OBJECT IDENTIFIER ::= {
149
// iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 12 }
150
//
151
static final String JavaDoc pkcs_12 = "1.2.840.113549.1.12";
152     static final String JavaDoc bagtypes = pkcs_12 + ".10.1";
153
154     static final DERObjectIdentifier keyBag = new DERObjectIdentifier(bagtypes + ".1");
155     static final DERObjectIdentifier pkcs8ShroudedKeyBag = new DERObjectIdentifier(bagtypes + ".2");
156     static final DERObjectIdentifier certBag = new DERObjectIdentifier(bagtypes + ".3");
157     static final DERObjectIdentifier crlBag = new DERObjectIdentifier(bagtypes + ".4");
158     static final DERObjectIdentifier secretBag = new DERObjectIdentifier(bagtypes + ".5");
159     static final DERObjectIdentifier safeContentsBag = new DERObjectIdentifier(bagtypes + ".6");
160 }
161
162
Popular Tags