org.codehaus.mojo.keytool
Class GenkeyMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.keytool.AbstractKeyToolMojo
          extended by org.codehaus.mojo.keytool.AbstractCmdLineKeyToolMojo
              extended by org.codehaus.mojo.keytool.GenkeyMojo
All Implemented Interfaces:
ContextEnabled, Mojo

Deprecated. since 1.2, use now the generateKeyPair mojo instead.

@Deprecated
public class GenkeyMojo
extends AbstractCmdLineKeyToolMojo

Generates a keystore.

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

 -genkey   [-v] [-protected]
 [-alias <alias>]
 [-keyalg <keyalg>] [-keysize <keysize>]
 [-sigalg <sigalg>] [-dname <dname>]
 [-validity <valDays>] [-keypass <keypass>]
 [-keystore <keystore>] [-storepass <storepass>]
 [-storetype <storetype>] [-providerName <name>]
 [-providerClass <provider_class_name> [-providerArg <arg>]] ...
 
See keystore documentation.

Version:
$Id: GenkeyMojo.java 16256 2012-04-08 10:55:11Z tchemit $
Author:
Jerome Lacoste
Is bound to the specified phase of the standard build lifecycle:
package
Requires a Maven project to run:
true
Is defined by the goal name:
genkey

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
GenkeyMojo()
          Deprecated.  
 
Method Summary
protected  KeyToolRequestWithKeyStoreAndAliasParameters createRequest()
          Deprecated. Creates the key tool request to execute.
protected  String getCommandlineInfo(org.codehaus.plexus.util.cli.Commandline commandLine)
          Deprecated. Gets a string representation of a Commandline.
 void setDname(String dname)
          Deprecated.  
 void setKeyalg(String keyalg)
          Deprecated.  
 void setKeypass(String keypass)
          Deprecated.  
 void setKeysize(String keysize)
          Deprecated.  
 void setSigalg(String sigalg)
          Deprecated.  
 void setValidity(String validity)
          Deprecated.  
 
Methods inherited from class org.codehaus.mojo.keytool.AbstractCmdLineKeyToolMojo
consumeResult, createParentDirIfNecessary, execute, getKeystore, getWorkingDir, setAlias, setArguments, setKeystore, setKeyTool, setStorepass, setStoretype, setWorkingDir
 
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

GenkeyMojo

public GenkeyMojo()
Deprecated. 
Method Detail

createRequest

protected KeyToolRequestWithKeyStoreAndAliasParameters createRequest()
Deprecated. 
Creates the key tool request to execute.

Specified by:
createRequest in class AbstractCmdLineKeyToolMojo
Returns:
the request

getCommandlineInfo

protected String getCommandlineInfo(org.codehaus.plexus.util.cli.Commandline commandLine)
Deprecated. 
Gets a string representation of a Commandline.

This method creates the string representation by calling commandLine.toString() by default.

Overrides:
getCommandlineInfo in class AbstractCmdLineKeyToolMojo
Parameters:
commandLine - The Commandline to get a string representation of (can not be null).
Returns:
The string representation of commandLine.

setKeyalg

public void setKeyalg(String keyalg)
Deprecated. 
Parameters:
keyalg - value of the keyalg field to set

setSigalg

public void setSigalg(String sigalg)
Deprecated. 
Parameters:
sigalg - value of the sigalg field to set

setKeysize

public void setKeysize(String keysize)
Deprecated. 
Parameters:
keysize - value of the keysize field to set

setValidity

public void setValidity(String validity)
Deprecated. 
Parameters:
validity - value of the validity field to set

setDname

public void setDname(String dname)
Deprecated. 
Parameters:
dname - value of the dname field to set

setKeypass

public void setKeypass(String keypass)
Deprecated. 
Parameters:
keypass - the keypass to set


Copyright © 2005-2012 Codehaus. All Rights Reserved.