@Mojo(name="generateKeyPair",
requiresProject=true)
public class GenerateKeyPairMojo
extends AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolGenerateKeyPairRequest>
keytool -genkey (jdk 1.5) keytool -genkeypair (jdk 1.6)
command.
See keystore documentation.| Constructor and Description |
|---|
GenerateKeyPairMojo()
Default contructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected KeyToolGenerateKeyPairRequest |
createKeytoolRequest()
To prepare the incoming request, says fill it with mojo parameters.
|
void |
execute() |
protected String |
getCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)
Gets a string representation of a
Commandline. |
createParentDirIfNecessary, getFile, getKeystoreFileconsumeResultgetMessage, getMessage, getMessage, isSkip, isVerbose, setSkip, setVerbosepublic void execute()
throws org.apache.maven.plugin.MojoExecutionException
AbstractKeyToolRequestMojoexecute in interface org.apache.maven.plugin.Mojoexecute in class AbstractKeyToolRequestMojo<KeyToolGenerateKeyPairRequest>org.apache.maven.plugin.MojoExecutionExceptionprotected KeyToolGenerateKeyPairRequest createKeytoolRequest()
createKeytoolRequest in class AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolGenerateKeyPairRequest>KeyToolRequestprotected String getCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)
Commandline.
This method creates the string representation by calling commandLine.toString() by default.
getCommandlineInfo in class AbstractKeyToolRequestWithKeyStoreParametersMojo<KeyToolGenerateKeyPairRequest>commandLine - The Commandline to get a string representation of (can not be null).commandLine.Copyright © 2005–2024 MojoHaus. All rights reserved.