org.codehaus.mojo.keytool
Class GenerateSecretKeyMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.keytool.AbstractKeyToolMojo
          extended by org.codehaus.mojo.keytool.AbstractKeyToolRequestMojo<R>
              extended by org.codehaus.mojo.keytool.AbstractKeyToolRequestWithKeyStoreParametersMojo<R>
                  extended by org.codehaus.mojo.keytool.AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolGenerateSecretKeyRequest>
                      extended by org.codehaus.mojo.keytool.GenerateSecretKeyMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class GenerateSecretKeyMojo
extends AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolGenerateSecretKeyRequest>

To generate a secret key into a keystore.

Implemented as a wrapper around the SDK keytool -genseckey command.

See keystore documentation.

Since:
1.2
Author:
tchemit
Requires a Maven project to run:
true
Is defined by the goal name:
generateSecretKey

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
GenerateSecretKeyMojo()
          Default contructor.
 
Method Summary
protected  KeyToolGenerateSecretKeyRequest createKeytoolRequest()
          To prepare the incoming request, says fill it with mojo parameters.
protected  String getCommandlineInfo(org.codehaus.plexus.util.cli.Commandline commandLine)
          Gets a string representation of a Commandline.
 
Methods inherited from class org.codehaus.mojo.keytool.AbstractKeyToolRequestWithKeyStoreParametersMojo
createParentDirIfNecessary
 
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
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerateSecretKeyMojo

public GenerateSecretKeyMojo()
Default contructor.

Method Detail

createKeytoolRequest

protected KeyToolGenerateSecretKeyRequest createKeytoolRequest()
To prepare the incoming request, says fill it with mojo parameters.

Overrides:
createKeytoolRequest in class AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolGenerateSecretKeyRequest>
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<KeyToolGenerateSecretKeyRequest>
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.