public class Keytool extends Object
Modifier and Type | Method and Description |
---|---|
static int |
execute(Prompt console,
String[] args) |
protected boolean |
ksExists() |
static void |
main(String[] args) |
protected InputStream |
openRead() |
protected OutputStream |
openWrite() |
int |
run(String arg,
boolean stdin,
boolean force)
Run the program with the given arguments
|
public static void main(String[] args)
public int run(String arg, boolean stdin, boolean force) throws 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 ignoredIOException
protected boolean ksExists()
protected InputStream openRead() throws FileNotFoundException
FileNotFoundException
protected OutputStream openWrite() throws IOException
IOException