public class SSLClientUtil extends Object
| Constructor | Description |
|---|---|
SSLClientUtil() |
| Modifier and Type | Method | Description |
|---|---|---|
static SSLServerSocketFactory |
initializeFactory(Properties opts) |
Sets up the SSLContext and sets the socket factory.
|
static boolean |
verifyKeyStore(Properties opts) |
Create a new selfsigned cert and keystore and pubkey cert if they don't exist.
|
static boolean |
verifyKeyStore(Properties opts,
String optPfx) |
Create a new selfsigned cert and keystore and pubkey cert if they don't exist.
|
static boolean |
verifyKeyStore(Properties opts,
String optPfx,
Set<String> altNames) |
Create a new selfsigned cert and keystore and pubkey cert if they don't exist.
|
public static boolean verifyKeyStore(Properties opts) throws IOException
opts - in/out, updated if rv is trueIOException - on creation failpublic static boolean verifyKeyStore(Properties opts, String optPfx) throws IOException
opts - in/out, updated if rv is trueoptPfx - add this prefix when getting/setting optionsIOException - on creation failpublic static boolean verifyKeyStore(Properties opts, String optPfx, Set<String> altNames) throws IOException
opts - in/out, updated if rv is trueoptPfx - add this prefix when getting/setting optionsaltNames - the Subject Alternative Names. May be null. May contain hostnames and/or IP addresses.
cname, localhost, 127.0.0.1, and ::1 will be automatically added.IOException - on creation failpublic static SSLServerSocketFactory initializeFactory(Properties opts) throws IOException
IOException - GeneralSecurityExceptions are wrapped in IOE for convenience