public class JarSigner
extends org.apache.tools.ant.taskdefs.SignJar
destDir, ERROR_BAD_MAP, ERROR_MAPPER_WITHOUT_DEST, ERROR_NO_ALIAS, ERROR_NO_STOREPASS, ERROR_SIGNEDJAR_AND_PATHS, ERROR_TODIR_AND_SIGNEDJAR, ERROR_TOO_MANY_MAPPERS, internalsf, lazy, sectionsonly, sigfile, signedjar, tsacert, tsaproxyhost, tsaproxyport, tsaurl
Constructor and Description |
---|
JarSigner() |
Modifier and Type | Method and Description |
---|---|
void |
signJar(File jarToSign,
String alias,
String keypass,
String keystore,
String storepass)
Signs the given jar with the given parameters.
|
add, execute, getDigestAlg, getMapper, getSigAlg, getTsacert, getTsaproxyhost, getTsaproxyport, getTsaurl, isForce, isSigned, isUpToDate, setDestDir, setDigestAlg, setForce, setInternalsf, setLazy, setPreserveLastModified, setSectionsonly, setSigAlg, setSigfile, setSignedjar, setTsacert, setTsaproxyhost, setTsaproxyport, setTsaurl
addFileset, addSysproperty, addValue, beginExecution, bindToKeystore, createJarSigner, createPath, createUnifiedSourcePath, createUnifiedSources, declareSysProperty, endExecution, getRedirector, hasResources, setAlias, setCommonOptions, setExecutable, setJar, setKeypass, setKeystore, setMaxmemory, setStorepass, setStoretype, setStrict, setVerbose
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void signJar(File jarToSign, String alias, String keypass, String keystore, String storepass)
jarToSign
- - a reference to the zip / jar to signalias
- - the alias to sign the zip / jar underkeypass
- - the password for the private keykeystore
- - the path to the keystorestorepass
- - the password for the keystoreThis work is licensed under a Creative Commons Attribution 4.0 International License.