org.codehaus.mojo.keytool
Class DefaultKeyToolCommandLineBuilder

java.lang.Object
  extended by org.codehaus.mojo.keytool.AbstractKeyToolCommandLineBuilder
      extended by org.codehaus.mojo.keytool.DefaultKeyToolCommandLineBuilder
All Implemented Interfaces:
KeyToolCommandLineBuilder

public class DefaultKeyToolCommandLineBuilder
extends AbstractKeyToolCommandLineBuilder

To build the command line for a given KeyToolRequest.

Since:
1.1
Version:
$Id: DefaultKeyToolCommandLineBuilder.java 15796 2012-01-29 16:07:29Z tchemit $
Author:
tchemit
Plexus component:
role:
"org.codehaus.mojo.keytool.KeyToolCommandLineBuilder"
role-hint:
"default"

Field Summary
 
Fields inherited from interface org.codehaus.mojo.keytool.KeyToolCommandLineBuilder
ROLE
 
Constructor Summary
DefaultKeyToolCommandLineBuilder()
           
 
Method Summary
protected  void build(KeyToolChangeAliasRequest request, org.codehaus.plexus.util.cli.Commandline cli)
          Fill the commandline client for the given request.
protected  void build(KeyToolChangeKeyPasswordRequest request, org.codehaus.plexus.util.cli.Commandline cli)
          Fill the commandline client for the given request.
protected  void build(KeyToolChangeStorePasswordRequest request, org.codehaus.plexus.util.cli.Commandline cli)
          Fill the commandline client for the given request.
protected  void build(KeyToolDeleteRequest request, org.codehaus.plexus.util.cli.Commandline cli)
          Fill the commandline client for the given request.
protected  void build(KeyToolExportCertificateRequest request, org.codehaus.plexus.util.cli.Commandline cli)
          Fill the commandline client for the given request.
protected  void build(KeyToolGenerateCertificateRequest request, org.codehaus.plexus.util.cli.Commandline cli)
          Fill the commandline client for the given request.
protected  void build(KeyToolGenerateCertificateRequestRequest request, org.codehaus.plexus.util.cli.Commandline cli)
          Fill the commandline client for the given request.
protected  void build(KeyToolGenerateKeyPairRequest request, org.codehaus.plexus.util.cli.Commandline cli)
          Fill the commandline client for the given request.
protected  void build(KeyToolGenerateSecretKeyRequest request, org.codehaus.plexus.util.cli.Commandline cli)
          Fill the commandline client for the given request.
protected  void build(KeyToolImportCertificateRequest request, org.codehaus.plexus.util.cli.Commandline cli)
          Fill the commandline client for the given request.
protected  void build(KeyToolImportKeystoreRequest request, org.codehaus.plexus.util.cli.Commandline cli)
          Fill the commandline client for the given request.
protected  void build(KeyToolListRequest request, org.codehaus.plexus.util.cli.Commandline cli)
          Fill the commandline client for the given request.
protected  void build(KeyToolPrintCertificateRequest request, org.codehaus.plexus.util.cli.Commandline cli)
          Fill the commandline client for the given request.
protected  void build(KeyToolPrintCertificateRequestRequest request, org.codehaus.plexus.util.cli.Commandline cli)
          Fill the commandline client for the given request.
protected  void build(KeyToolPrintCRLFileRequest request, org.codehaus.plexus.util.cli.Commandline cli)
          Fill the commandline client for the given request.
 org.codehaus.plexus.util.cli.Commandline build(KeyToolRequest request)
          Build the commandline given the incoming keytool request.
 
Methods inherited from class org.codehaus.mojo.keytool.AbstractKeyToolCommandLineBuilder
addArg, addArg, addArgIfNotEmpty, addArgIfNotEmpty, addArgIfTrue, addKeytoolCommandAndDefaultoptions, buildWithKeyStoreAndAliasParameters, buildWithKeyStoreParameters, checkRequiredState, getKeyToolFile, getLogger, setKeyToolFile, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultKeyToolCommandLineBuilder

public DefaultKeyToolCommandLineBuilder()
Method Detail

build

public org.codehaus.plexus.util.cli.Commandline build(KeyToolRequest request)
                                               throws CommandLineConfigurationException
Build the commandline given the incoming keytool request.

Parameters:
request - keytool request
Returns:
the prepared commandline client ready to be executed
Throws:
CommandLineConfigurationException - if could not find keytool executable

build

protected void build(KeyToolChangeAliasRequest request,
                     org.codehaus.plexus.util.cli.Commandline cli)
Fill the commandline client for the given request.

Parameters:
request - the keytool request to consume
cli - the commandline client to prepare

build

protected void build(KeyToolChangeKeyPasswordRequest request,
                     org.codehaus.plexus.util.cli.Commandline cli)
Fill the commandline client for the given request.

Parameters:
request - the keytool request to consume
cli - the commandline client to prepare

build

protected void build(KeyToolChangeStorePasswordRequest request,
                     org.codehaus.plexus.util.cli.Commandline cli)
Fill the commandline client for the given request.

Parameters:
request - the keytool request to consume
cli - the commandline client to prepare

build

protected void build(KeyToolDeleteRequest request,
                     org.codehaus.plexus.util.cli.Commandline cli)
Fill the commandline client for the given request.

Parameters:
request - the keytool request to consume
cli - the commandline client to prepare

build

protected void build(KeyToolExportCertificateRequest request,
                     org.codehaus.plexus.util.cli.Commandline cli)
Fill the commandline client for the given request.

Parameters:
request - the keytool request to consume
cli - the commandline client to prepare

build

protected void build(KeyToolGenerateCertificateRequest request,
                     org.codehaus.plexus.util.cli.Commandline cli)
Fill the commandline client for the given request.

Parameters:
request - the keytool request to consume
cli - the commandline client to prepare

build

protected void build(KeyToolGenerateCertificateRequestRequest request,
                     org.codehaus.plexus.util.cli.Commandline cli)
Fill the commandline client for the given request.

Parameters:
request - the keytool request to consume
cli - the commandline client to prepare

build

protected void build(KeyToolGenerateKeyPairRequest request,
                     org.codehaus.plexus.util.cli.Commandline cli)
Fill the commandline client for the given request.

Parameters:
request - the keytool request to consume
cli - the commandline client to prepare

build

protected void build(KeyToolGenerateSecretKeyRequest request,
                     org.codehaus.plexus.util.cli.Commandline cli)
Fill the commandline client for the given request.

Parameters:
request - the keytool request to consume
cli - the commandline client to prepare

build

protected void build(KeyToolImportCertificateRequest request,
                     org.codehaus.plexus.util.cli.Commandline cli)
Fill the commandline client for the given request.

Parameters:
request - the keytool request to consume
cli - the commandline client to prepare

build

protected void build(KeyToolImportKeystoreRequest request,
                     org.codehaus.plexus.util.cli.Commandline cli)
Fill the commandline client for the given request.

Parameters:
request - the keytool request to consume
cli - the commandline client to prepare

build

protected void build(KeyToolListRequest request,
                     org.codehaus.plexus.util.cli.Commandline cli)
Fill the commandline client for the given request.

Parameters:
request - the keytool request to consume
cli - the commandline client to prepare

build

protected void build(KeyToolPrintCertificateRequest request,
                     org.codehaus.plexus.util.cli.Commandline cli)
Fill the commandline client for the given request.

Parameters:
request - the keytool request to consume
cli - the commandline client to prepare

build

protected void build(KeyToolPrintCertificateRequestRequest request,
                     org.codehaus.plexus.util.cli.Commandline cli)
Fill the commandline client for the given request.

Parameters:
request - the keytool request to consume
cli - the commandline client to prepare

build

protected void build(KeyToolPrintCRLFileRequest request,
                     org.codehaus.plexus.util.cli.Commandline cli)
Fill the commandline client for the given request.

Parameters:
request - the keytool request to consume
cli - the commandline client to prepare


Copyright © 2005-2012 Codehaus. All Rights Reserved.