public class SSLClientUtil
extends java.lang.Object
| コンストラクタ | 説明 |
|---|---|
SSLClientUtil() |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
static javax.net.ssl.SSLServerSocketFactory |
initializeFactory(java.util.Properties opts) |
Sets up the SSLContext and sets the socket factory.
|
static boolean |
verifyKeyStore(java.util.Properties opts) |
Create a new selfsigned cert and keystore and pubkey cert if they don't exist.
|
static boolean |
verifyKeyStore(java.util.Properties opts,
java.lang.String optPfx) |
Create a new selfsigned cert and keystore and pubkey cert if they don't exist.
|
static boolean |
verifyKeyStore(java.util.Properties opts,
java.lang.String optPfx,
java.util.Set<java.lang.String> altNames) |
Create a new selfsigned cert and keystore and pubkey cert if they don't exist.
|
public static boolean verifyKeyStore(java.util.Properties opts)
throws java.io.IOException
opts - in/out, updated if rv is truejava.io.IOException - on creation failpublic static boolean verifyKeyStore(java.util.Properties opts,
java.lang.String optPfx)
throws java.io.IOException
opts - in/out, updated if rv is trueoptPfx - add this prefix when getting/setting optionsjava.io.IOException - on creation failpublic static boolean verifyKeyStore(java.util.Properties opts,
java.lang.String optPfx,
java.util.Set<java.lang.String> altNames)
throws java.io.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.java.io.IOException - on creation failpublic static javax.net.ssl.SSLServerSocketFactory initializeFactory(java.util.Properties opts)
throws java.io.IOException
java.io.IOException - GeneralSecurityExceptions are wrapped in IOE for convenience