|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.mojo.keytool.DefaultKeyTool
public class DefaultKeyTool
Default implementation of component KeyTool.
| Field Summary | |
|---|---|
protected KeyToolCommandLineBuilder |
builder
Command line builder. |
protected String |
keyToolFile
The location of the keyTool executable file. |
| Fields inherited from interface org.codehaus.mojo.keytool.KeyTool |
|---|
ROLE |
| Constructor Summary | |
|---|---|
DefaultKeyTool()
|
|
| Method Summary | |
|---|---|
protected org.codehaus.plexus.util.cli.Commandline |
createCommandLine(KeyToolRequest request)
Creates the commandline given the request. |
KeyToolResult |
execute(KeyToolRequest request)
Executes KeyTool tool using the parameters specified by the given invocation request. |
protected KeyToolResult |
executeCommandLine(org.codehaus.plexus.util.cli.Commandline cli,
KeyToolRequest request)
Launch execution of the given commandline |
protected String |
findExecutable(String command,
String homeDir,
String[] subDirs)
Finds the specified command in any of the given sub directories of the specified JDK/JRE home directory. |
protected String |
findKeyToolExecutable()
Finds the keeytool executable location. |
| Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String keyToolFile
protected KeyToolCommandLineBuilder builder
| Constructor Detail |
|---|
public DefaultKeyTool()
| Method Detail |
|---|
public KeyToolResult execute(KeyToolRequest request)
throws KeyToolException
execute in interface KeyToolrequest - The invocation request to execute, must not be null.
null.
KeyToolException - if something fails while init the command
protected org.codehaus.plexus.util.cli.Commandline createCommandLine(KeyToolRequest request)
throws KeyToolException
request - keytool request
KeyToolException - if could not find the keytool command
protected KeyToolResult executeCommandLine(org.codehaus.plexus.util.cli.Commandline cli,
KeyToolRequest request)
cli - the commandline client ready to be executedrequest - the incoming keytool request
protected String findKeyToolExecutable()
throws IOException
IOException - if could not find the executable
protected String findExecutable(String command,
String homeDir,
String[] subDirs)
command - The command to find, must not be null.homeDir - The home directory to search in, may be null.subDirs - The sub directories of the home directory to search in, must not be null.
null otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||