Class JarSignerSignRequest
java.lang.Object
org.apache.maven.shared.utils.cli.javatool.AbstractJavaToolRequest
org.apache.maven.shared.jarsigner.AbstractJarSignerRequest
org.apache.maven.shared.jarsigner.JarSignerSignRequest
- All Implemented Interfaces:
JarSignerRequest,org.apache.maven.shared.utils.cli.javatool.JavaToolRequest
Specifies the parameters used to control a jar signer sign operation invocation.
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileLocation of the extra certchain file to be used during signing.private StringSee options.private StringSee options.protected FileSee options.private StringThe-tsacertparameter.private StringThe-tsadigestalgparameter, the message digest algorithm for TSA server to use.private StringThe-tsaparameter, the URL to the Time Stamping Authority (TSA) server.private StringThe-tsapolicyidparameter, an OID to send to the TSA server to identify the policy ID the server should use.Fields inherited from class org.apache.maven.shared.jarsigner.AbstractJarSignerRequest
protectedAuthenticationPath -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet certificate chain.voidsetCertchain(File certchain) Sets certchain to be used.voidsetKeypass(String keypass) voidsetSigfile(String sigfile) voidsetSignedjar(File signedjar) voidsetTsaAlias(String tsaAlias) voidsetTsadigestalg(String tsadigestalg) voidsetTsaLocation(String tsaLocation) voidsetTsapolicyid(String tsapolicyid) Methods inherited from class org.apache.maven.shared.jarsigner.AbstractJarSignerRequest
getAlias, getArchive, getArguments, getKeystore, getMaxMemory, getProviderArg, getProviderClass, getProviderName, getStorepass, getStoretype, getWorkingDirectory, isProtectedAuthenticationPath, isVerbose, setAlias, setArchive, setArguments, setKeystore, setMaxMemory, setProtectedAuthenticationPath, setProviderArg, setProviderClass, setProviderName, setStorepass, setStoretype, setVerbose, setWorkingDirectoryMethods inherited from class org.apache.maven.shared.utils.cli.javatool.AbstractJavaToolRequest
getSystemErrorStreamConsumer, getSystemOutStreamConsumer, setSystemErrorStreamConsumer, setSystemOutStreamConsumerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.shared.utils.cli.javatool.JavaToolRequest
getSystemErrorStreamConsumer, getSystemOutStreamConsumer, setSystemErrorStreamConsumer, setSystemOutStreamConsumer
-
Field Details
-
keypass
See options. -
sigfile
See options. -
tsaLocation
The-tsaparameter, the URL to the Time Stamping Authority (TSA) server. See options. -
tsaAlias
The-tsacertparameter. Alias for a certificate in the active keystore. From the certificate the X509v3 extension "Subject Information Access" field is examined to find a TSA server URL. See options. -
tsapolicyid
The-tsapolicyidparameter, an OID to send to the TSA server to identify the policy ID the server should use. See options.- Since:
- 3.1.0
-
tsadigestalg
The-tsadigestalgparameter, the message digest algorithm for TSA server to use. Only available in Java 11 and later. See options.- Since:
- 3.1.0
-
signedjar
See options. -
certchain
Location of the extra certchain file to be used during signing. See options.- Since:
- 3.0.0
-
-
Constructor Details
-
JarSignerSignRequest
public JarSignerSignRequest()
-
-
Method Details
-
getKeypass
-
getSigfile
-
getTsaLocation
-
getTsaAlias
-
getTsapolicyid
-
getTsadigestalg
-
setKeypass
-
setSigfile
-
setTsaLocation
-
setTsaAlias
-
setTsapolicyid
-
setTsadigestalg
-
getSignedjar
-
setSignedjar
-
setCertchain
Sets certchain to be used.- Parameters:
certchain- Cert Chain file path ornullto remove the option- Since:
- 3.0.0
-
getCertchain
Get certificate chain.- Returns:
- Path to the certificate chain file or
nullif undefined
-