|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.mojo.webstart.sign.DefaultSignTool
public class DefaultSignTool
Default implementation of the SignTool.
|
| Field Summary |
|---|
| Fields inherited from interface org.codehaus.mojo.webstart.sign.SignTool |
|---|
ROLE |
| Constructor Summary | |
|---|---|
DefaultSignTool()
|
|
| Method Summary | |
|---|---|
void |
deleteKeyStore(File keystore,
boolean verbose)
Delete an existing key store |
void |
generateKey(SignConfig config,
File keystoreFile)
Generate a key store using keytool. |
boolean |
isJarSigned(SignConfig config,
File jarFile)
Tests if the given jar is signed. |
void |
sign(SignConfig config,
File jarFile,
File signedJar)
Sign a jar using jarsigner. |
void |
unsign(File jarFile,
File tempDirectory,
boolean verbose)
Unsign a jar. |
protected void |
verboseLog(boolean verbose,
String msg)
Log as info when verbose or info is enabled, as debug otherwise. |
void |
verify(SignConfig config,
File jarFile,
boolean certs)
Verify a jar file using jarsigner. |
| Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSignTool()
| Method Detail |
|---|
public void generateKey(SignConfig config,
File keystoreFile)
throws org.apache.maven.plugin.MojoExecutionException
SignTool
generateKey in interface SignToolconfig - sign configurationkeystoreFile - location of the keystore to generate
org.apache.maven.plugin.MojoExecutionException - if something wrong occurs
public void sign(SignConfig config,
File jarFile,
File signedJar)
throws org.apache.maven.plugin.MojoExecutionException
SignTool
sign in interface SignToolconfig - sign configurationjarFile - location of the jar to signsignedJar - optional location of the signed jar to produce (if not set, will use the original location)
org.apache.maven.plugin.MojoExecutionException - if something wrong occurs
public void verify(SignConfig config,
File jarFile,
boolean certs)
throws org.apache.maven.plugin.MojoExecutionException
SignTool
verify in interface SignToolconfig - sign configurationjarFile - location of the jar to signcerts - flag to show certificats details
org.apache.maven.plugin.MojoExecutionException - if something wrong occurs
public boolean isJarSigned(SignConfig config,
File jarFile)
throws org.apache.maven.plugin.MojoExecutionException
SignTool
isJarSigned in interface SignToolconfig - sign configurationjarFile - the jar file to test
true if jar file is signed, false otherwise
org.apache.maven.plugin.MojoExecutionException - if something wrong occurs
public void unsign(File jarFile,
File tempDirectory,
boolean verbose)
throws org.apache.maven.plugin.MojoExecutionException
SignTool
unsign in interface SignTooljarFile - location of the jar to unsigntempDirectory - temp directory where to unzip the jarverbose - flag to display verbose logs
org.apache.maven.plugin.MojoExecutionException - if something wrong occurs
public void deleteKeyStore(File keystore,
boolean verbose)
SignTool
deleteKeyStore in interface SignToolkeystore - the keystore to deleteverbose - flag to display verbose logs
protected void verboseLog(boolean verbose,
String msg)
verbose - verbose levelmsg - message to log
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||