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:
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.

Field Summary
 
Fields inherited from class org.codehaus.mojo.keytool.AbstractKeyToolMojo
keystore, workingDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ImportMojo()
           
 
Method Summary
 void execute()
           
 void setAlias(String alias)
           
 void setFile(String file)
           
 void setKeypass(String keypass)
           
 void setStorepass(String storepass)
           
 void setStoretype(String storetype)
           
 void setUseJREcacerts(boolean useJREcacerts)
           
 void setVerbose(boolean verbose)
           
 
Methods inherited from class org.codehaus.mojo.keytool.AbstractCmdLineKeyToolMojo
addArgIf, addArgIfNotEmpty, addArgIfNotEmpty, addArgIfNotEmpty2, createParentDirIfNecessary, executeCommandLine, getKeytoolPath
 
Methods inherited from class org.codehaus.mojo.keytool.AbstractKeyToolMojo
getKeystore, getWorkingDir, setKeystore, setWorkingDir
 
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()
Method Detail

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.