Class KeyToolGenerateCertificateRequest
- java.lang.Object
-
- org.apache.maven.shared.utils.cli.javatool.AbstractJavaToolRequest
-
- org.codehaus.mojo.keytool.requests.AbstractKeyToolRequest
-
- org.codehaus.mojo.keytool.requests.AbstractKeyToolRequestWithKeyStoreParameters
-
- org.codehaus.mojo.keytool.requests.AbstractKeyToolRequestWithKeyStoreAndAliasParameters
-
- org.codehaus.mojo.keytool.requests.KeyToolGenerateCertificateRequest
-
- All Implemented Interfaces:
org.apache.maven.shared.utils.cli.javatool.JavaToolRequest,KeyToolRequest,KeyToolRequestWithKeyStoreAndAliasParameters,KeyToolRequestWithKeyStoreParameters
public class KeyToolGenerateCertificateRequest extends AbstractKeyToolRequestWithKeyStoreAndAliasParameters
Request to do a Generate certificate from a certificate request using the KeyTool tool. Note: Such a request requires a jdk >= 1.7.- Since:
- 1.1
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringdnameDistinguished name.private java.lang.StringextX.509 extension.private java.io.Fileinfileinput file name.private java.lang.StringkeypassKey password.private java.io.Fileoutfileoutput file name.private booleanrfcOutput in RFC style.private java.lang.StringsigalgSignature algorithm name.private java.lang.StringstartdateCertificate validity start date/time.private java.lang.StringvalidityValidity number of days.
-
Constructor Summary
Constructors Constructor Description KeyToolGenerateCertificateRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDname()Gets the value of thednamefield.java.lang.StringgetExt()Gets the value of theextfield.java.io.FilegetInfile()Gets the value of theinfilefield.java.lang.StringgetKeypass()Gets the value of thekeypassfield.java.io.FilegetOutfile()Gets the value of theoutfilefield.java.lang.StringgetSigalg()Gets the value of thesigalgfield.java.lang.StringgetStartdate()Gets the value of thestartdatefield.java.lang.StringgetValidity()Gets the value of thevalidityfield.booleanisRfc()Gets the value of therfcfield.voidsetDname(java.lang.String dname)voidsetExt(java.lang.String ext)voidsetInfile(java.io.File infile)voidsetKeypass(java.lang.String keypass)Sets the new given value to the fieldkeypassof the request.voidsetOutfile(java.io.File outfile)voidsetRfc(boolean rfc)voidsetSigalg(java.lang.String sigalg)voidsetStartdate(java.lang.String startdate)voidsetValidity(java.lang.String validity)-
Methods inherited from class org.codehaus.mojo.keytool.requests.AbstractKeyToolRequestWithKeyStoreAndAliasParameters
getAlias, isPasswordProtected, setAlias, setPasswordProtected
-
Methods inherited from class org.codehaus.mojo.keytool.requests.AbstractKeyToolRequestWithKeyStoreParameters
getKeystore, getProviderarg, getProviderclass, getProvidername, getProviderpath, getStorepass, getStoretype, setKeystore, setProviderarg, setProviderclass, setProvidername, setProviderpath, setStorepass, setStoretype
-
Methods inherited from class org.codehaus.mojo.keytool.requests.AbstractKeyToolRequest
getArguments, getWorkingDirectory, isVerbose, setArguments, setVerbose, setWorkingDirectory
-
Methods inherited from class org.apache.maven.shared.utils.cli.javatool.AbstractJavaToolRequest
getSystemErrorStreamConsumer, getSystemOutStreamConsumer, setSystemErrorStreamConsumer, setSystemOutStreamConsumer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.maven.shared.utils.cli.javatool.JavaToolRequest
getSystemErrorStreamConsumer, getSystemOutStreamConsumer, setSystemErrorStreamConsumer, setSystemOutStreamConsumer
-
Methods inherited from interface org.codehaus.mojo.keytool.KeyToolRequest
getArguments, getWorkingDirectory, isVerbose, setArguments, setVerbose, setWorkingDirectory
-
Methods inherited from interface org.codehaus.mojo.keytool.KeyToolRequestWithKeyStoreParameters
getKeystore, getProviderarg, getProviderclass, getProvidername, getProviderpath, getStorepass, getStoretype, setKeystore, setProviderarg, setProviderclass, setProvidername, setProviderpath, setStorepass, setStoretype
-
-
-
-
Field Detail
-
keypass
private java.lang.String keypass
Key password. See options.
-
rfc
private boolean rfc
Output in RFC style. See options.
-
infile
private java.io.File infile
input file name. See options.
-
outfile
private java.io.File outfile
output file name. See options.
-
sigalg
private java.lang.String sigalg
Signature algorithm name. See options.
-
dname
private java.lang.String dname
Distinguished name. See options.
-
startdate
private java.lang.String startdate
Certificate validity start date/time. See options.
-
ext
private java.lang.String ext
X.509 extension. See options.
-
validity
private java.lang.String validity
Validity number of days. See options.
-
-
Method Detail
-
setRfc
public void setRfc(boolean rfc)
- Parameters:
rfc- value of the fieldrfcto set
-
getInfile
public java.io.File getInfile()
Gets the value of theinfilefield.- Returns:
- the value of the
infilefield
-
setInfile
public void setInfile(java.io.File infile)
- Parameters:
infile- value of the fieldinfileto set
-
getOutfile
public java.io.File getOutfile()
Gets the value of theoutfilefield.- Returns:
- the value of the
outfilefield
-
setOutfile
public void setOutfile(java.io.File outfile)
- Parameters:
outfile- value of the fieldoutfileto set
-
getSigalg
public java.lang.String getSigalg()
Gets the value of thesigalgfield.- Returns:
- the value of the
sigalgfield
-
setSigalg
public void setSigalg(java.lang.String sigalg)
- Parameters:
sigalg- value of the fieldsigalgto set
-
getDname
public java.lang.String getDname()
Gets the value of thednamefield.- Returns:
- the value of the
dnamefield
-
setDname
public void setDname(java.lang.String dname)
- Parameters:
dname- value of the fielddnameto set
-
getStartdate
public java.lang.String getStartdate()
Gets the value of thestartdatefield.- Returns:
- the value of the
startdatefield
-
setStartdate
public void setStartdate(java.lang.String startdate)
- Parameters:
startdate- value of the fieldstartdateto set
-
getExt
public java.lang.String getExt()
Gets the value of theextfield.- Returns:
- the value of the
extfield
-
setExt
public void setExt(java.lang.String ext)
- Parameters:
ext- value of the fieldextto set
-
getValidity
public java.lang.String getValidity()
Gets the value of thevalidityfield.- Returns:
- the value of the
validityfield
-
setValidity
public void setValidity(java.lang.String validity)
- Parameters:
validity- value of the fieldvalidityto set
-
getKeypass
public java.lang.String getKeypass()
Gets the value of thekeypassfield.- Returns:
- the value of the
keypassfield.
-
setKeypass
public void setKeypass(java.lang.String keypass)
Sets the new given value to the fieldkeypassof the request.- Parameters:
keypass- the new value of the fieldkeypass.
-
-