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.String
dname
Distinguished name.private java.lang.String
ext
X.509 extension.private java.io.File
infile
input file name.private java.lang.String
keypass
Key password.private java.io.File
outfile
output file name.private boolean
rfc
Output in RFC style.private java.lang.String
sigalg
Signature algorithm name.private java.lang.String
startdate
Certificate validity start date/time.private java.lang.String
validity
Validity number of days.
-
Constructor Summary
Constructors Constructor Description KeyToolGenerateCertificateRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDname()
Gets the value of thedname
field.java.lang.String
getExt()
Gets the value of theext
field.java.io.File
getInfile()
Gets the value of theinfile
field.java.lang.String
getKeypass()
Gets the value of thekeypass
field.java.io.File
getOutfile()
Gets the value of theoutfile
field.java.lang.String
getSigalg()
Gets the value of thesigalg
field.java.lang.String
getStartdate()
Gets the value of thestartdate
field.java.lang.String
getValidity()
Gets the value of thevalidity
field.boolean
isRfc()
Gets the value of therfc
field.void
setDname(java.lang.String dname)
void
setExt(java.lang.String ext)
void
setInfile(java.io.File infile)
void
setKeypass(java.lang.String keypass)
Sets the new given value to the fieldkeypass
of the request.void
setOutfile(java.io.File outfile)
void
setRfc(boolean rfc)
void
setSigalg(java.lang.String sigalg)
void
setStartdate(java.lang.String startdate)
void
setValidity(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 fieldrfc
to set
-
getInfile
public java.io.File getInfile()
Gets the value of theinfile
field.- Returns:
- the value of the
infile
field
-
setInfile
public void setInfile(java.io.File infile)
- Parameters:
infile
- value of the fieldinfile
to set
-
getOutfile
public java.io.File getOutfile()
Gets the value of theoutfile
field.- Returns:
- the value of the
outfile
field
-
setOutfile
public void setOutfile(java.io.File outfile)
- Parameters:
outfile
- value of the fieldoutfile
to set
-
getSigalg
public java.lang.String getSigalg()
Gets the value of thesigalg
field.- Returns:
- the value of the
sigalg
field
-
setSigalg
public void setSigalg(java.lang.String sigalg)
- Parameters:
sigalg
- value of the fieldsigalg
to set
-
getDname
public java.lang.String getDname()
Gets the value of thedname
field.- Returns:
- the value of the
dname
field
-
setDname
public void setDname(java.lang.String dname)
- Parameters:
dname
- value of the fielddname
to set
-
getStartdate
public java.lang.String getStartdate()
Gets the value of thestartdate
field.- Returns:
- the value of the
startdate
field
-
setStartdate
public void setStartdate(java.lang.String startdate)
- Parameters:
startdate
- value of the fieldstartdate
to set
-
getExt
public java.lang.String getExt()
Gets the value of theext
field.- Returns:
- the value of the
ext
field
-
setExt
public void setExt(java.lang.String ext)
- Parameters:
ext
- value of the fieldext
to set
-
getValidity
public java.lang.String getValidity()
Gets the value of thevalidity
field.- Returns:
- the value of the
validity
field
-
setValidity
public void setValidity(java.lang.String validity)
- Parameters:
validity
- value of the fieldvalidity
to set
-
getKeypass
public java.lang.String getKeypass()
Gets the value of thekeypass
field.- Returns:
- the value of the
keypass
field.
-
setKeypass
public void setKeypass(java.lang.String keypass)
Sets the new given value to the fieldkeypass
of the request.- Parameters:
keypass
- the new value of the fieldkeypass
.
-
-