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:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
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>]
- Version:
- 1.0
- Author:
- Juergen Mayrbaeurl
- See Also:
- keystore documentation.
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
ImportMojo
public ImportMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
setAlias
public void setAlias(String alias)
- Parameters:
alias
- the alias to set
setFile
public void setFile(String file)
- Parameters:
file
- the file to set
setKeypass
public void setKeypass(String keypass)
- Parameters:
keypass
- the keypass to set
setStoretype
public void setStoretype(String storetype)
- Parameters:
storetype
- the storetype to set
setStorepass
public void setStorepass(String storepass)
- Parameters:
storepass
- the storepass to set
setVerbose
public void setVerbose(boolean verbose)
- Parameters:
verbose
- the verbose to set
setUseJREcacerts
public void setUseJREcacerts(boolean useJREcacerts)
- Parameters:
useJREcacerts
- the useJREcacerts to set
Copyright © 2005-2011 Codehaus. All Rights Reserved.