org.codehaus.mojo.keytool
Class ImportMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.keytool.AbstractKeyToolMojo
org.codehaus.mojo.keytool.AbstractCmdLineKeyToolMojo
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
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportMojo
public ImportMojo()
- Deprecated.
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.