类java.util.jar.JarException源码实例Demo

下面列出了怎么用java.util.jar.JarException的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: dragonwell8_jdk   文件: SignatureFileVerifier.java
/**
 * process the signature block file. Goes through the .SF file
 * and adds code signers for each section where the .SF section
 * hash was verified against the Manifest section.
 *
 *
 */
public void process(Hashtable<String, CodeSigner[]> signers,
        List<Object> manifestDigests)
    throws IOException, SignatureException, NoSuchAlgorithmException,
        JarException, CertificateException
{
    // calls Signature.getInstance() and MessageDigest.getInstance()
    // need to use local providers here, see Providers class
    Object obj = null;
    try {
        obj = Providers.startJarVerification();
        processImpl(signers, manifestDigests);
    } finally {
        Providers.stopJarVerification(obj);
    }

}
 
源代码2 项目: TencentKona-8   文件: SignatureFileVerifier.java
/**
 * process the signature block file. Goes through the .SF file
 * and adds code signers for each section where the .SF section
 * hash was verified against the Manifest section.
 *
 *
 */
public void process(Hashtable<String, CodeSigner[]> signers,
        List<Object> manifestDigests)
    throws IOException, SignatureException, NoSuchAlgorithmException,
        JarException, CertificateException
{
    // calls Signature.getInstance() and MessageDigest.getInstance()
    // need to use local providers here, see Providers class
    Object obj = null;
    try {
        obj = Providers.startJarVerification();
        processImpl(signers, manifestDigests);
    } finally {
        Providers.stopJarVerification(obj);
    }

}
 
源代码3 项目: openjdk-jdk8u   文件: SignatureFileVerifier.java
/**
 * process the signature block file. Goes through the .SF file
 * and adds code signers for each section where the .SF section
 * hash was verified against the Manifest section.
 *
 *
 */
public void process(Hashtable<String, CodeSigner[]> signers,
        List<Object> manifestDigests)
    throws IOException, SignatureException, NoSuchAlgorithmException,
        JarException, CertificateException
{
    // calls Signature.getInstance() and MessageDigest.getInstance()
    // need to use local providers here, see Providers class
    Object obj = null;
    try {
        obj = Providers.startJarVerification();
        processImpl(signers, manifestDigests);
    } finally {
        Providers.stopJarVerification(obj);
    }

}
 
/**
 * process the signature block file. Goes through the .SF file
 * and adds code signers for each section where the .SF section
 * hash was verified against the Manifest section.
 *
 *
 */
public void process(Hashtable<String, CodeSigner[]> signers,
        List<Object> manifestDigests)
    throws IOException, SignatureException, NoSuchAlgorithmException,
        JarException, CertificateException
{
    // calls Signature.getInstance() and MessageDigest.getInstance()
    // need to use local providers here, see Providers class
    Object obj = null;
    try {
        obj = Providers.startJarVerification();
        processImpl(signers, manifestDigests);
    } finally {
        Providers.stopJarVerification(obj);
    }

}
 
源代码5 项目: Bytecoder   文件: SignatureFileVerifier.java
/**
 * process the signature block file. Goes through the .SF file
 * and adds code signers for each section where the .SF section
 * hash was verified against the Manifest section.
 *
 *
 */
public void process(Hashtable<String, CodeSigner[]> signers,
        List<Object> manifestDigests)
    throws IOException, SignatureException, NoSuchAlgorithmException,
        JarException, CertificateException
{
    // calls Signature.getInstance() and MessageDigest.getInstance()
    // need to use local providers here, see Providers class
    Object obj = null;
    try {
        obj = Providers.startJarVerification();
        processImpl(signers, manifestDigests);
    } finally {
        Providers.stopJarVerification(obj);
    }

}
 
源代码6 项目: openjdk-jdk9   文件: SignatureFileVerifier.java
/**
 * process the signature block file. Goes through the .SF file
 * and adds code signers for each section where the .SF section
 * hash was verified against the Manifest section.
 *
 *
 */
public void process(Hashtable<String, CodeSigner[]> signers,
        List<Object> manifestDigests)
    throws IOException, SignatureException, NoSuchAlgorithmException,
        JarException, CertificateException
{
    // calls Signature.getInstance() and MessageDigest.getInstance()
    // need to use local providers here, see Providers class
    Object obj = null;
    try {
        obj = Providers.startJarVerification();
        processImpl(signers, manifestDigests);
    } finally {
        Providers.stopJarVerification(obj);
    }

}
 
源代码7 项目: jdk8u-jdk   文件: SignatureFileVerifier.java
/**
 * process the signature block file. Goes through the .SF file
 * and adds code signers for each section where the .SF section
 * hash was verified against the Manifest section.
 *
 *
 */
public void process(Hashtable<String, CodeSigner[]> signers,
        List<Object> manifestDigests)
    throws IOException, SignatureException, NoSuchAlgorithmException,
        JarException, CertificateException
{
    // calls Signature.getInstance() and MessageDigest.getInstance()
    // need to use local providers here, see Providers class
    Object obj = null;
    try {
        obj = Providers.startJarVerification();
        processImpl(signers, manifestDigests);
    } finally {
        Providers.stopJarVerification(obj);
    }

}
 
源代码8 项目: jdk8u_jdk   文件: SignatureFileVerifier.java
/**
 * process the signature block file. Goes through the .SF file
 * and adds code signers for each section where the .SF section
 * hash was verified against the Manifest section.
 *
 *
 */
public void process(Hashtable<String, CodeSigner[]> signers,
        List<Object> manifestDigests)
    throws IOException, SignatureException, NoSuchAlgorithmException,
        JarException, CertificateException
{
    // calls Signature.getInstance() and MessageDigest.getInstance()
    // need to use local providers here, see Providers class
    Object obj = null;
    try {
        obj = Providers.startJarVerification();
        processImpl(signers, manifestDigests);
    } finally {
        Providers.stopJarVerification(obj);
    }

}
 
源代码9 项目: JReFrameworker   文件: Dropper.java
private static void modifyTarget(File originalRuntime, String mergeRenamePrefix, File outputRuntime, boolean watermark, byte[]... classFiles) throws JarException, IOException {
	Engine engine = new Engine(originalRuntime, mergeRenamePrefix);
	for(byte[] classFile : classFiles){
		engine.process(classFile);
	}
	if(watermark){
		engine.addFile(WATERMARK, WATERMARK.getBytes(), true);
	}
	engine.save(outputRuntime);
}
 
源代码10 项目: JReFrameworker   文件: Dropper.java
private static void modifyTarget(File originalRuntime, String mergeRenamePrefix, File outputRuntime, boolean watermark, byte[]... classFiles) throws JarException, IOException {
	Engine engine = new Engine(originalRuntime, mergeRenamePrefix);
	for(byte[] classFile : classFiles){
		engine.process(classFile);
	}
	if(watermark){
		engine.addFile(WATERMARK, WATERMARK.getBytes(), true);
	}
	engine.save(outputRuntime);
}
 
源代码11 项目: j2objc   文件: OldJarExceptionTest.java
/**
 * java.util.jar.JarException#JarException(java.lang.String)
 */
public void test_Constructor() throws Exception {
    JarException ex = new JarException();
    JarException ex1 = new JarException("Test string");
    JarException ex2 = new JarException(null);
    assertNotSame(ex, ex1);
    assertNotSame(ex.getMessage(), ex1.getMessage());
    assertNotSame(ex, ex2);
    assertSame(ex.getMessage(), ex2.getMessage());
}
 
源代码12 项目: JReFrameworker   文件: Engine.java
public Engine(File jar, String mergeRenamePrefix) throws JarException, IOException {
	this.mergeRenamePrefix = mergeRenamePrefix;
	this.jarModifier = new JarModifier(jar);
	this.jarName = jar.getName();
	this.originalEntries = new HashSet<String>(jarModifier.getJarEntrySet());
}
 
源代码13 项目: JReFrameworker   文件: Engine.java
public Engine(File jar, String mergeRenamePrefix, ClassLoader[] classLoaders) throws JarException, IOException {
	this(jar, mergeRenamePrefix);
	this.classLoaders = classLoaders;
}
 
源代码14 项目: JReFrameworker   文件: Engine.java
public Engine(File jar, String mergeRenamePrefix) throws JarException, IOException {
	this.mergeRenamePrefix = mergeRenamePrefix;
	this.jarModifier = new JarModifier(jar);
	this.jarName = jar.getName();
	this.originalEntries = new HashSet<String>(jarModifier.getJarEntrySet());
}
 
源代码15 项目: JReFrameworker   文件: Engine.java
public Engine(File jar, String mergeRenamePrefix, ClassLoader[] classLoaders) throws JarException, IOException {
	this(jar, mergeRenamePrefix);
	this.classLoaders = classLoaders;
}
 
源代码16 项目: j2objc   文件: JarExceptionTest.java
/**
 * java.util.jar.JarException#JarException(java.lang.String)
 */
public void test_ConstructorLjava_lang_String1() throws Exception {
    assertEquals("Jar Exception", new JarException("Jar Exception").getMessage());
}
 
源代码17 项目: j2objc   文件: JarExceptionTest.java
/**
 * java.util.jar.JarException#JarException()
 */
public void test_Constructor_void() throws Exception {
    new JarException();
}
 
源代码18 项目: j2objc   文件: OldJarExceptionTest.java
public void test_ConstructorLjava_lang_String() throws Exception {
    JarException ex1 = new JarException("Test string");
    JarException ex2 = new JarException(null);
    assertNotSame(ex1, ex2);
    assertNotSame(ex1.getMessage(), ex2.getMessage());
}
 
 类所在包
 同包方法