org.codehaus.mojo.keytool
Interface KeyToolCommandLineBuilder

All Known Implementing Classes:
AbstractKeyToolCommandLineBuilder, DefaultKeyToolCommandLineBuilder

public interface KeyToolCommandLineBuilder

To build the command line for a given KeyToolRequest.

Since:
1.1
Version:
$Id: KeyToolCommandLineBuilder.java 15796 2012-01-29 16:07:29Z tchemit $
Author:
tchemit

Field Summary
static String ROLE
          Plexus role name.
 
Method Summary
 org.codehaus.plexus.util.cli.Commandline build(KeyToolRequest request)
          Build the commandline given the incoming keytool request.
 void checkRequiredState()
          Checks that builder is ready to produce commandline from incoming request.
 void setKeyToolFile(String keyToolFile)
          Sets the keytool executable location.
 void setLogger(org.codehaus.plexus.logging.Logger logger)
          Sets the logger used by the builder.
 

Field Detail

ROLE

static final String ROLE
Plexus role name.

Method Detail

build

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

setLogger

void setLogger(org.codehaus.plexus.logging.Logger logger)
Sets the logger used by the builder.

Parameters:
logger - logger to use in this builder

setKeyToolFile

void setKeyToolFile(String keyToolFile)
Sets the keytool executable location.

Parameters:
keyToolFile - keytool executable location to use in this builder

checkRequiredState

void checkRequiredState()
Checks that builder is ready to produce commandline from incoming request.

Says a logger is set and a keytool executable location is setted.



Copyright © 2005-2012 Codehaus. All Rights Reserved.