KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > maverick > crypto > asn1 > x509 > X509ObjectIdentifiers


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.x509;
21
22 import com.maverick.crypto.asn1.DERObjectIdentifier;
23
24 public interface X509ObjectIdentifiers
25 {
26     //
27
// base id
28
//
29
static final String JavaDoc id = "2.5.4";
30
31     static final DERObjectIdentifier commonName = new DERObjectIdentifier(id + ".3");
32     static final DERObjectIdentifier countryName = new DERObjectIdentifier(id + ".6");
33     static final DERObjectIdentifier localityName = new DERObjectIdentifier(id + ".7");
34     static final DERObjectIdentifier stateOrProvinceName = new DERObjectIdentifier(id + ".8");
35     static final DERObjectIdentifier organization = new DERObjectIdentifier(id + ".10");
36     static final DERObjectIdentifier organizationalUnitName = new DERObjectIdentifier(id + ".11");
37
38     // id-SHA1 OBJECT IDENTIFIER ::=
39
// {iso(1) identified-organization(3) oiw(14) secsig(3) algorithms(2) 26 } //
40
static final DERObjectIdentifier id_SHA1 = new DERObjectIdentifier("1.3.14.3.2.26");
41
42     //
43
// ripemd160 OBJECT IDENTIFIER ::=
44
// {iso(1) identified-organization(3) TeleTrust(36) algorithm(3) hashAlgorithm(2) RIPEMD-160(1)}
45
//
46
static final DERObjectIdentifier ripemd160 = new DERObjectIdentifier("1.3.36.3.2.1");
47
48     //
49
// ripemd160WithRSAEncryption OBJECT IDENTIFIER ::=
50
// {iso(1) identified-organization(3) TeleTrust(36) algorithm(3) signatureAlgorithm(3) rsaSignature(1) rsaSignatureWithripemd160(2) }
51
//
52
static final DERObjectIdentifier ripemd160WithRSAEncryption = new DERObjectIdentifier("1.3.36.3.3.1.2");
53
54
55     static final DERObjectIdentifier id_ea_rsa = new DERObjectIdentifier("2.5.8.1.1");
56
57     //
58
// OID for ocsp uri in AuthorityInformationAccess extension
59
//
60
static final DERObjectIdentifier ocspAccessMethod = new DERObjectIdentifier("1.3.6.1.5.5.7.48.1");
61 }
62
63
Popular Tags