public class SignConfig extends Object
Constructor and Description |
---|
SignConfig() |
Modifier and Type | Method and Description |
---|---|
org.codehaus.mojo.keytool.requests.KeyToolGenerateKeyPairRequest |
createKeyGenRequest(File keystoreFile)
Creates a keytool request to do a key store generation operation.
|
org.apache.maven.shared.jarsigner.JarSignerRequest |
createSignRequest(File jarToSign,
File signedJar)
Creates a jarsigner request to do a sign operation.
|
org.apache.maven.shared.jarsigner.JarSignerRequest |
createVerifyRequest(File jarFile,
boolean certs)
Creates a jarsigner request to do a verify operation.
|
String |
getAlias() |
String[] |
getArguments() |
String |
getDname() |
String |
getDnameC() |
String |
getDnameCn() |
String |
getDnameL() |
String |
getDnameO() |
String |
getDnameOu() |
String |
getDnameSt() |
String |
getHttpProxyHost() |
String |
getHttpProxyPort() |
String |
getHttpsProxyHost() |
String |
getHttpsProxyPort() |
String |
getKeyalg() |
String |
getKeypass() |
String |
getKeysize() |
String |
getKeystore() |
String |
getMaxMemory() |
String |
getSigalg() |
String |
getSigfile() |
String |
getStorepass() |
String |
getStoretype() |
String |
getTsaLocation() |
String |
getValidity() |
void |
init(File workDirectory,
boolean verbose,
SignTool signTool,
org.sonatype.plexus.components.sec.dispatcher.SecDispatcher securityDispatcher,
ClassLoader classLoader)
Called before any Jars get signed or verified.
|
boolean |
isVerbose()
Gets the verbose state of the configuration.
|
boolean |
isVerify() |
void |
setAlias(String alias) |
void |
setArguments(String[] arguments) |
void |
setDnameC(String dnameC) |
void |
setDnameCn(String dnameCn) |
void |
setDnameL(String dnameL) |
void |
setDnameO(String dnameO) |
void |
setDnameOu(String dnameOu) |
void |
setDnameSt(String dnameSt) |
void |
setHttpProxyHost(String httpProxyHost) |
void |
setHttpProxyPort(String httpProxyPort) |
void |
setHttpsProxyHost(String httpsProxyHost) |
void |
setHttpsProxyPort(String httpsProxyPort) |
void |
setKeyalg(String keyalg) |
void |
setKeypass(String keypass) |
void |
setKeysize(String keysize) |
void |
setKeystore(String keystore) |
void |
setKeystoreConfig(KeystoreConfig keystoreConfig) |
void |
setMaxMemory(String maxMemory) |
void |
setSigalg(String sigalg) |
void |
setSigfile(String sigfile) |
void |
setStorepass(String storepass) |
void |
setStoretype(String storetype) |
void |
setTsaLocation(String tsaLocation) |
void |
setValidity(String validity) |
void |
setVerbose(boolean verbose) |
void |
setVerify(boolean verify) |
void |
setWorkDirectory(File workDirectory) |
void |
setWorkingKeystore(File workingKeystore) |
public void init(File workDirectory, boolean verbose, SignTool signTool, org.sonatype.plexus.components.sec.dispatcher.SecDispatcher securityDispatcher, ClassLoader classLoader) throws org.apache.maven.plugin.MojoExecutionException
workDirectory
- working directoryverbose
- verbose flag coming from the mojo configurationsignTool
- the sign tool used eventually to create or delete key storesecurityDispatcher
- component to decrypt a string, passed to itclassLoader
- classloader where to find keystore (if not generating a new one)org.apache.maven.plugin.MojoExecutionException
- if something wrong occurs while init (mainly when preparing keys)public org.apache.maven.shared.jarsigner.JarSignerRequest createSignRequest(File jarToSign, File signedJar) throws org.apache.maven.plugin.MojoExecutionException
jarToSign
- the location of the jar to signsignedJar
- the optional location of the signed jar to produce (if not set, will use the original location)org.apache.maven.plugin.MojoExecutionException
- if something wrong occurspublic org.apache.maven.shared.jarsigner.JarSignerRequest createVerifyRequest(File jarFile, boolean certs)
jarFile
- the location of the jar to signcerts
- flag to show certificates detailspublic org.codehaus.mojo.keytool.requests.KeyToolGenerateKeyPairRequest createKeyGenRequest(File keystoreFile)
keystoreFile
- the location of the key store file to generatepublic boolean isVerbose()
true
if configuration state is on, false
otherwise.public void setWorkDirectory(File workDirectory)
public void setVerbose(boolean verbose)
public void setMaxMemory(String maxMemory)
public void setKeystoreConfig(KeystoreConfig keystoreConfig)
public void setKeystore(String keystore)
public void setWorkingKeystore(File workingKeystore)
public void setKeyalg(String keyalg)
public void setKeysize(String keysize)
public void setSigalg(String sigalg)
public void setSigfile(String sigfile)
public void setStoretype(String storetype)
public void setStorepass(String storepass)
public void setKeypass(String keypass)
public void setValidity(String validity)
public void setDnameCn(String dnameCn)
public void setDnameOu(String dnameOu)
public void setDnameL(String dnameL)
public void setDnameSt(String dnameSt)
public void setDnameO(String dnameO)
public void setDnameC(String dnameC)
public void setAlias(String alias)
public void setVerify(boolean verify)
public void setTsaLocation(String tsaLocation)
public void setArguments(String[] arguments)
public String getKeystore()
public String getKeyalg()
public String getKeysize()
public String getSigalg()
public String getSigfile()
public String getStoretype()
public String getStorepass()
public String getKeypass()
public String getValidity()
public String getDnameCn()
public String getDnameOu()
public String getDnameL()
public String getDnameSt()
public String getDnameO()
public String getDnameC()
public String getAlias()
public boolean isVerify()
public String getTsaLocation()
public String getMaxMemory()
public String[] getArguments()
public String getHttpProxyHost()
public void setHttpProxyHost(String httpProxyHost)
public String getHttpProxyPort()
public void setHttpProxyPort(String httpProxyPort)
public String getHttpsProxyHost()
public void setHttpsProxyHost(String httpsProxyHost)
public String getHttpsProxyPort()
public void setHttpsProxyPort(String httpsProxyPort)
public String getDname()
Copyright © 2005–2016 MojoHaus. All rights reserved.