org.eclipse.osgi.internal.signedcontent.SignedContentConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotless-ext-greclipse Show documentation
Show all versions of spotless-ext-greclipse Show documentation
Groovy Eclipse's formatter bundled for Spotless
The newest version!
/*******************************************************************************
* Copyright (c) 2006, 2014 IBM Corporation and others. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: IBM Corporation - initial API and implementation
******************************************************************************/
package org.eclipse.osgi.internal.signedcontent;
import java.nio.charset.Charset;
public interface SignedContentConstants {
public static final String SHA1_STR = "SHA1"; //$NON-NLS-1$
public static final String SHA256_STR = "SHA256"; //$NON-NLS-1$
public static final String SHA384_STR = "SHA384"; //$NON-NLS-1$
public static final String SHA512_STR = "SHA512"; //$NON-NLS-1$
public static final String SHA224_STR = "SHA224"; //$NON-NLS-1$
public static final String SHA512_224_STR = "SHA512-224"; //$NON-NLS-1$
public static final String SHA512_256_STR = "SHA512-256"; //$NON-NLS-1$
public static final String MD5_STR = "MD5"; //$NON-NLS-1$
public static final String MD2_STR = "MD2"; //$NON-NLS-1$
public static final String DOT_DSA = ".DSA"; //$NON-NLS-1$
public static final String DOT_RSA = ".RSA"; //$NON-NLS-1$
public static final String DOT_SF = ".SF"; //$NON-NLS-1$
public static final String SIG_DASH = "SIG-"; //$NON-NLS-1$
public static final String META_INF = "META-INF/"; //$NON-NLS-1$
public static final String META_INF_MANIFEST_MF = "META-INF/MANIFEST.MF"; //$NON-NLS-1$
public static final String[] EMPTY_STRING = new String[0];
public static final Charset UTF8 = Charset.forName("UTF-8"); //$NON-NLS-1$
//
// following are variables and methods to cache the entries related data
// for a given MF file
//
public static final String MF_ENTRY_NEWLN_NAME = "\nName: "; //$NON-NLS-1$
public static final String MF_ENTRY_NAME = "Name: "; //$NON-NLS-1$
public static final String MF_DIGEST_PART = "-Digest: "; //$NON-NLS-1$
public static final String digestManifestSearch = "-Digest-Manifest: "; //$NON-NLS-1$
public static final int digestManifestSearchLen = digestManifestSearch.length();
public static final int SIGNEDDATA_OID[] = {1, 2, 840, 113549, 1, 7, 2};
public static final int MD5_OID[] = {1, 2, 840, 113549, 2, 5};
public static final int MD2_OID[] = {1, 2, 840, 113549, 2, 2};
public static final int SHA1_OID[] = {1, 3, 14, 3, 2, 26};
public static final int SHA256_OID[] = {2, 16, 840, 1, 101, 3, 4, 2, 1};
public static final int SHA384_OID[] = {2, 16, 840, 1, 101, 3, 4, 2, 2};
public static final int SHA512_OID[] = {2, 16, 840, 1, 101, 3, 4, 2, 3};
public static final int SHA224_OID[] = {2, 16, 840, 1, 101, 3, 4, 2, 4};
public static final int SHA512_224_OID[] = {2, 16, 840, 1, 101, 3, 4, 2, 5};
public static final int SHA512_256_OID[] = {2, 16, 840, 1, 101, 3, 4, 2, 6};
public static final int DSA_OID[] = {1, 2, 840, 10040, 4, 1};
public static final int RSA_OID[] = {1, 2, 840, 113549, 1, 1, 1};
// constant for trust engine service
public static final String TRUST_ENGINE = "osgi.signedcontent.trust.engine"; //$NON-NLS-1$
public static final Object DEFAULT_TRUST_ENGINE = "org.eclipse.osgi"; //$NON-NLS-1$
// constant for the timestamp related
public static final int TIMESTAMP_OID[] = {1, 2, 840, 113549, 1, 9, 16, 2, 14};
public static final int TIMESTAMP_TST_OID[] = {1, 2, 840, 113549, 1, 9, 16, 1, 4};
public static final int SIGNING_TIME[] = {1, 2, 840, 113549, 1, 9, 5};
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy