class SSLUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String | DEFAULT_SAMCLIENT_CONFIGFILEDEFAULT_SAMCLIENT_CONFIGFILE. |
| Constructor and Description |
|---|
SSLUtil() |
| Modifier and Type | Method and 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. |
public static final String DEFAULT_SAMCLIENT_CONFIGFILE
public static SSLServerSocketFactory initializeFactory(Properties opts) throws IOException
IOException - GeneralSecurityExceptions are wrapped in IOE for conveniencepublic static boolean verifyKeyStore(Properties opts) throws IOException
opts - in/out, updated if rv is trueIOException - on creation fail