Package org.codehaus.mojo.keytool
Class GenerateCertificateRequestMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.keytool.AbstractKeyToolMojo
-
- org.codehaus.mojo.keytool.AbstractKeyToolRequestMojo<R>
-
- org.codehaus.mojo.keytool.AbstractKeyToolRequestWithKeyStoreParametersMojo<R>
-
- org.codehaus.mojo.keytool.AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolGenerateCertificateRequestRequest>
-
- org.codehaus.mojo.keytool.GenerateCertificateRequestMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="generateCertificateRequest", requiresProject=true) public class GenerateCertificateRequestMojo extends AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolGenerateCertificateRequestRequest>
To generate certificate request. Implemented as a wrapper around the SDKkeytool -certreq
command. See keystore documentation.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description GenerateCertificateRequestMojo()
Default contructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected KeyToolGenerateCertificateRequestRequest
createKeytoolRequest()
To prepare the incoming request, says fill it with mojo parameters.protected java.lang.String
getCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)
Gets a string representation of aCommandline
.-
Methods inherited from class org.codehaus.mojo.keytool.AbstractKeyToolRequestWithKeyStoreParametersMojo
createParentDirIfNecessary, getFile, getKeystoreFile
-
Methods inherited from class org.codehaus.mojo.keytool.AbstractKeyToolRequestMojo
consumeResult, execute
-
Methods inherited from class org.codehaus.mojo.keytool.AbstractKeyToolMojo
getMessage, getMessage, getMessage, isSkip, isVerbose, setSkip, setVerbose
-
-
-
-
Field Detail
-
keypass
@Parameter private java.lang.String keypass
Key password. See options.- Since:
- 1.2
-
file
@Parameter private java.io.File file
Output file name. See options.- Since:
- 1.2
-
sigalg
@Parameter private java.lang.String sigalg
Signature algorithm name. See options.- Since:
- 1.2
-
dname
@Parameter private java.lang.String dname
Distinguished name. See options.- Since:
- 1.2
-
-
Method Detail
-
createKeytoolRequest
protected KeyToolGenerateCertificateRequestRequest createKeytoolRequest()
To prepare the incoming request, says fill it with mojo parameters.- Overrides:
createKeytoolRequest
in classAbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolGenerateCertificateRequestRequest>
- Returns:
- the created keytool request
- See Also:
KeyToolRequest
-
getCommandlineInfo
protected java.lang.String getCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)
Gets a string representation of aCommandline
.This method creates the string representation by calling
commandLine.toString()
by default.- Overrides:
getCommandlineInfo
in classAbstractKeyToolRequestWithKeyStoreParametersMojo<KeyToolGenerateCertificateRequestRequest>
- Parameters:
commandLine
- TheCommandline
to get a string representation of (can not be null).- Returns:
- The string representation of
commandLine
.
-
-