KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > osgi > internal > verifier > JarVerifierConstant


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
3  * This program and the accompanying materials are made available under the
4  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
5  * and is available at http://www.eclipse.org/legal/epl-v10.html
6  *
7  * Contributors: IBM Corporation - initial API and implementation
8  ******************************************************************************/

9
10 package org.eclipse.osgi.internal.verifier;
11
12 public interface JarVerifierConstant {
13
14     public static final String JavaDoc SHA1_STR = "SHA1"; //$NON-NLS-1$
15
public static final String JavaDoc MD5_STR = "MD5"; //$NON-NLS-1$
16
public static final String JavaDoc MD2_STR = "MD2"; //$NON-NLS-1$
17

18     public static final String JavaDoc DOT_DSA = ".DSA"; //$NON-NLS-1$
19
public static final String JavaDoc DOT_RSA = ".RSA"; //$NON-NLS-1$
20
public static final String JavaDoc DOT_SF = ".SF"; //$NON-NLS-1$
21
public static final String JavaDoc META_INF = "META-INF/"; //$NON-NLS-1$
22
public static final String JavaDoc META_INF_MANIFEST_MF = "META-INF/MANIFEST.MF"; //$NON-NLS-1$
23
public static final String JavaDoc[] EMPTY_STRING = new String JavaDoc[0];
24
25     //
26
// following are variables and methods to cache the entries related data
27
// for a given MF file
28
//
29
public static final String JavaDoc MF_ENTRY_NEWLN_NAME = "\nName: "; //$NON-NLS-1$
30
public static final String JavaDoc MF_ENTRY_NAME = "Name: "; //$NON-NLS-1$
31
public static final String JavaDoc MF_DIGEST_PART = "-Digest: "; //$NON-NLS-1$
32
public static final String JavaDoc digestManifestSearch = "-Digest-Manifest: "; //$NON-NLS-1$
33
public static final int digestManifestSearchLen = digestManifestSearch.length();
34
35     public static final int SIGNEDDATA_OID[] = {1, 2, 840, 113549, 1, 7, 2};
36     public static final int MD5_OID[] = {1, 2, 840, 113549, 2, 5};
37     public static final int MD2_OID[] = {1, 2, 840, 113549, 2, 2};
38     public static final int SHA1_OID[] = {1, 3, 14, 3, 2, 26};
39     public static final int DSA_OID[] = {1, 2, 840, 10040, 4, 1};
40     public static final int RSA_OID[] = {1, 2, 840, 113549, 1, 1, 1};
41
42     // constant for certs chain trust service
43
public static final String JavaDoc TRUST_AUTHORITY = "osgi.certificate.trust.authority"; //$NON-NLS-1$
44
public static final Object JavaDoc DEFAULT_TRUST_AUTHORITY = "org.eclipse.osgi"; //$NON-NLS-1$
45

46     // consttant for the timestamp related
47
public static final int TIMESTAMP_OID[] = {1, 2, 840, 113549, 1, 9, 16, 2, 14};
48     public static final int TIMESTAMP_TST_OID[] = {1, 2, 840, 113549, 1, 9, 16, 1, 4};
49     public static final int SIGNING_TIME[] = {1, 2, 840, 113549, 1, 9, 5};
50
51 }
52
Popular Tags