|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SignTool
Tool api for jarsigner operations.
| Field Summary | |
|---|---|
static String |
ROLE
Plexus component role. |
| 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. |
void |
verify(SignConfig config,
File jarFile,
boolean certs)
Verify a jar file using jarsigner. |
| Field Detail |
|---|
static final String ROLE
| Method Detail |
|---|
void generateKey(SignConfig config,
File keystoreFile)
throws org.apache.maven.plugin.MojoExecutionException
config - sign configurationkeystoreFile - location of the keystore to generate
org.apache.maven.plugin.MojoExecutionException - if something wrong occurs
void sign(SignConfig config,
File jarFile,
File signedJar)
throws org.apache.maven.plugin.MojoExecutionException
config - 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
void verify(SignConfig config,
File jarFile,
boolean certs)
throws org.apache.maven.plugin.MojoExecutionException
config - sign configurationjarFile - location of the jar to signcerts - flag to show certificats details
org.apache.maven.plugin.MojoExecutionException - if something wrong occurs
boolean isJarSigned(SignConfig config,
File jarFile)
throws org.apache.maven.plugin.MojoExecutionException
config - sign configurationjarFile - the jar file to test
true if jar file is signed, false otherwise
org.apache.maven.plugin.MojoExecutionException - if something wrong occurs
void unsign(File jarFile,
File tempDirectory,
boolean verbose)
throws org.apache.maven.plugin.MojoExecutionException
jarFile - 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
void deleteKeyStore(File keystore,
boolean verbose)
keystore - the keystore to deleteverbose - flag to display verbose logs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||