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:
- ContextEnabled, Mojo
public class GenerateCertificateRequestMojo
- extends AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolGenerateCertificateRequestRequest>
To generate certificate request.
Implemented as a wrapper around the SDK keytool -certreq
command.
See keystore documentation.
- Since:
- 1.2
- Author:
- tchemit
- Requires a Maven project to run:
- true
- Is defined by the goal name:
- generateCertificateRequest
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenerateCertificateRequestMojo
public GenerateCertificateRequestMojo()
- Default contructor.
createKeytoolRequest
protected KeyToolGenerateCertificateRequestRequest createKeytoolRequest()
- To prepare the incoming request, says fill it with mojo parameters.
- Overrides:
createKeytoolRequest
in class AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolGenerateCertificateRequestRequest>
- Returns:
- the created keytool request
- See Also:
KeyToolRequest
getCommandlineInfo
protected String getCommandlineInfo(org.codehaus.plexus.util.cli.Commandline commandLine)
- Gets a string representation of a
Commandline
.
This method creates the string representation by calling commandLine.toString()
by default.
- Overrides:
getCommandlineInfo
in class AbstractKeyToolRequestWithKeyStoreParametersMojo<KeyToolGenerateCertificateRequestRequest>
- Parameters:
commandLine
- The Commandline
to get a string representation of (can not be null).
- Returns:
- The string representation of
commandLine
.
Copyright © 2005-2012 Codehaus. All Rights Reserved.