security
Class SignUtils

java.lang.Object
  extended by security.SignUtils

public class SignUtils
extends java.lang.Object

DocJava, Inc. User: lyon Date: May 26, 2004 Time: 7:40:22 AM


Constructor Summary
SignUtils()
           
 
Method Summary
static void jarIt()
           
static void jarSignerRun(java.lang.String[] args, java.io.File workingDir)
           
static void main(java.lang.String[] args)
           
static void packSignAndVerify()
           
static void packSignAndVerify(java.lang.String className, java.lang.String keystoreName, java.lang.String storepass, java.lang.String alias)
           
static void sign(java.lang.String keystoreName, java.lang.String storepass, java.io.File jarFileName, java.lang.String alias)
          Assume that the keystore password and the certificate password are the same.
static void signGui()
           
static void signOneJarGui()
           
static void testJarSigner()
           
static void testPackSignAndVerify()
           
static void verify(java.io.File jarFileName)
          This method causes the callers thread of execution to terminate after the run!
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignUtils

public SignUtils()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException

testJarSigner

public static void testJarSigner()

jarSignerRun

public static void jarSignerRun(java.lang.String[] args,
                                java.io.File workingDir)

signGui

public static void signGui()

signOneJarGui

public static void signOneJarGui()

testPackSignAndVerify

public static void testPackSignAndVerify()

packSignAndVerify

public static void packSignAndVerify()

packSignAndVerify

public static void packSignAndVerify(java.lang.String className,
                                     java.lang.String keystoreName,
                                     java.lang.String storepass,
                                     java.lang.String alias)

jarIt

public static void jarIt()

sign

public static void sign(java.lang.String keystoreName,
                        java.lang.String storepass,
                        java.io.File jarFileName,
                        java.lang.String alias)
Assume that the keystore password and the certificate password are the same. If they are not, you will be prompted during normal jarsigner use to enter the certificate password. To change the password of the certificate in the keystore, use:

keytool -keypasswd -alias duke -keypass dukekeypasswd -new newpass

To change the password of the keystore, use:

jarsigner -keypass newDukeKeyPassword

Parameters:
keystoreName - fully qualified path to keystore.
storepass - certificate and store password
jarFileName - thing to be signed
alias - certificate name

verify

public static void verify(java.io.File jarFileName)
This method causes the callers thread of execution to terminate after the run!