org.codehaus.mojo.keytool
Class ExportMojo

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.ExportMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class ExportMojo
extends AbstractCmdLineKeyToolMojo

Reads (from the keystore) the certificate associated with alias, and stores it in the file cert_file.

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

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

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
ExportMojo()
           
 
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 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

ExportMojo

public ExportMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

setFile

public void setFile(String file)
Parameters:
file - the file 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

setAlias

public void setAlias(String alias)
Parameters:
alias - the alias to set

setVerbose

public void setVerbose(boolean verbose)
Parameters:
verbose - the verbose to set

setKeypass

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


Copyright © 2005-2011 Codehaus. All Rights Reserved.