org.codehaus.mojo.keytool
Class ImportMojo

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.ImportMojo
All Implemented Interfaces:
ContextEnabled, Mojo

Deprecated. since 1.2, user now the importCertificate mojo instead.

@Deprecated
public class ImportMojo
extends AbstractCmdLineKeyToolMojo

Reads the certificate or certificate chain (where the latter is supplied in a PKCS#7 formatted reply) from the file cert_file, and stores it in the keystore entry identified by alias.

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

 -import   [-v] [-protected]
 [-alias <alias>]
 [-file <file>]
 [-keypass <keypass>]
 [-storepass <storepass>]
 [-storetype <storetype>]
 [-keystore <keystore>]
 

See keystore documentation.

Version:
1.0
Author:
Juergen Mayrbaeurl
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:
import

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ImportMojo()
          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 setFile(String file)
          Deprecated.  
 void setKeypass(String keypass)
          Deprecated.  
 void setUseJREcacerts(boolean useJREcacerts)
          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

ImportMojo

public ImportMojo()
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.

setFile

public void setFile(String file)
Deprecated. 
Parameters:
file - the file to set

setUseJREcacerts

public void setUseJREcacerts(boolean useJREcacerts)
Deprecated. 
Parameters:
useJREcacerts - the useJREcacerts flag to set

setKeypass

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


Copyright © 2005-2012 Codehaus. All Rights Reserved.