src/com/esotericsoftware/scar/Jar.java
static public String sign (String jarFile, String keystoreFile, String alias, String password) throws IOException {
		if (jarFile == null) throw new IllegalArgumentException("jarFile cannot be null.");
		if (keystoreFile == null) throw new IllegalArgumentException("keystoreFile cannot be null.");
		if (alias == null) throw new IllegalArgumentException("alias cannot be null.");
		if (password == null) throw new IllegalArgumentException("password cannot be null.");
		if (password.length() < 6) throw new IllegalArgumentException("password must be 6 or more characters.");

		if (DEBUG) debug("scar", "Signing JAR (" + keystoreFile + ", " + alias + ":" + password + "): " + jarFile);

		shell("jarsigner", "-keystore", keystoreFile, "-storepass", password, "-keypass", password, jarFile, alias);
		return jarFile;
	}
/** Signs the specified JAR.
	 * @return The path to the JAR. */
Signs the specified JAR.
@return The path to the JAR.
Signs the specified JAR . @return The path to the JAR .
static public String sign (String jarFile, String keystoreFile, String alias, String password) throws IOException {
		if (jarFile == null) throw new IllegalArgumentException("jarFile cannot be null.");
		if (keystoreFile == null) throw new IllegalArgumentException("keystoreFile cannot be null.");
		if (alias == null) throw new IllegalArgumentException("alias cannot be null.");
		if (password == null) throw new IllegalArgumentException("password cannot be null.");
		if (password.length() < 6) throw new IllegalArgumentException("password must be 6 or more characters.");
		if (DEBUG) debug("scar", "Signing JAR (" + keystoreFile + ", " + alias + ":" + password + "): " + jarFile);
		shell("jarsigner", "-keystore", keystoreFile, "-storepass", password, "-keypass", password, jarFile, alias);
		return jarFile;
	}
static public String sign ( String jarFile , String keystoreFile , String alias , String password ) throws IOException { if ( jarFile == null ) throw new IllegalArgumentException ( "jarFile cannot be null." ) ; if ( keystoreFile == null ) throw new IllegalArgumentException ( "keystoreFile cannot be null." ) ; if ( alias == null ) throw new IllegalArgumentException ( "alias cannot be null." ) ; if ( password == null ) throw new IllegalArgumentException ( "password cannot be null." ) ; if ( password . length ( ) < 6 ) throw new IllegalArgumentException ( "password must be 6 or more characters." ) ; if ( DEBUG ) debug ( "scar" , "Signing JAR (" + keystoreFile + ", " + alias + ":" + password + "): " + jarFile ) ; shell ( "jarsigner" , "-keystore" , keystoreFile , "-storepass" , password , "-keypass" , password , jarFile , alias ) ; return jarFile ; }
Signs the specified JAR.
Signs the specified JAR .