Class Keytool
java.lang.Object
com.irurueta.authserver.testsupport.Keytool
Runs the
keytool of the JDK that runs the tests and cleans up the temporary directories its key stores live
in; the JDK has no public API to issue a certificate. Shared by the generators of test certificates, so none of them
keeps a key, a certificate or a key store beyond the time a test needs it.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longLongest timekeytoolmay take. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TIMEOUT_SECONDS
private static final long TIMEOUT_SECONDSLongest timekeytoolmay take.- See Also:
-
-
Constructor Details
-
Keytool
private Keytool()Not instantiable.
-
-
Method Details
-
run
Runskeytooland waits for it.- Parameters:
arguments- the arguments, without the executable.- Throws:
IOException- if it cannot run or fails.
-
delete
Deletes a directory and what it holds, ignoring a failure.- Parameters:
directory- the directory, may benull.
-