public class Keytool
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static int |
execute(Prompt console,
java.lang.String[] args) |
protected boolean |
ksExists() |
static void |
main(java.lang.String[] args) |
protected java.io.InputStream |
openRead() |
protected java.io.OutputStream |
openWrite() |
int |
run(java.lang.String arg,
boolean stdin,
boolean force)
Run the program with the given arguments
|
public static void main(java.lang.String[] args)
public static int execute(Prompt console, java.lang.String[] args)
public int run(java.lang.String arg,
boolean stdin,
boolean force)
throws java.io.IOException
arg - Usually the name of the property to set. Can be empty for some commandsstdin - Flag to state that the input should be read from stdinforce - Flag to state that overwriting a key should be ignoredjava.io.IOExceptionprotected boolean ksExists()
protected java.io.InputStream openRead()
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionprotected java.io.OutputStream openWrite()
throws java.io.IOException
java.io.IOException