FileDocCategorySizeDatePackage
Test.javaAPI DocAzureus 3.0.3.41981Thu Feb 09 19:43:22 GMT 2006org.gudy.azureus2.core3.util.jar

Test

public class Test extends Object
author
parg

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		try{
			SESecurityManager.initialise();
			
			System.out.println( System.getProperty( "java.home" ));
			
			String	alias = "Azureus"; // SESecurityManager.DEFAULT_ALIAS;
			
			// SEKeyDetails	kd = SESecurityManager.getKeyDetails( alias );
			// WUJarSigner signer = new WUJarSigner(alias, (PrivateKey)kd.getKey(), kd.getCertificateChain());
			
			AEJarSigner2 signer = 
				new AEJarSigner2(
						alias,
						SESecurityManager.getKeystoreName(),
						SESecurityManager.getKeystorePassword());
			
			FileOutputStream	fos = new FileOutputStream( "c:\\temp\\sj.jar");
			
			signer.signJarFile( new File( "c:\\temp\\si.jar"), fos );
			
			fos.close();
			
		}catch( Throwable e ){
			
			Debug.printStackTrace( e );
		}
		
		System.out.println("normal exit");