public class DefaultTcpSSLContextSupport extends ObjectSE implements TcpSSLContextSupport
TcpSSLContextSupport のデフォルト実装。"SunX509" キーおよびトラストマネージャーによって管理される "JKS" キーストアで初期化された "TLS" (デフォルト)SSLContextSE を使用します。| コンストラクターと説明 |
|---|
DefaultTcpSSLContextSupport(StringSE keyStore, StringSE trustStore, StringSE keyStorePassword, StringSE trustStorePassword) 提供されたキー / トラストストアとパスワードを使用して SSLContext を作成する準備をします。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
SSLContextSE | getSSLContext()SSLContext を取得します。 |
void | setKeyStoreType(StringSE keyStoreType) キーストア型を設定します。 |
void | setProtocol(StringSE protocol)SSLContext.getInstance(String)SE で使用されるプロトコル。デフォルトの "TLS"。 |
void | setTrustStoreType(StringSE trustStoreType) トラストストアの種類を設定します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic void setKeyStoreType(StringSE keyStoreType)
keyStoreType - 型。public void setTrustStoreType(StringSE trustStoreType)
trustStoreType - 型。public SSLContextSE getSSLContext() throws GeneralSecurityExceptionSE, IOExceptionSE
TcpSSLContextSupportTcpSSLContextSupport の getSSLContext GeneralSecurityExceptionSE - GeneralSecurityException。IOExceptionSE - IOException。public void setProtocol(StringSE protocol)
SSLContext.getInstance(String)SE で使用されるプロトコル。デフォルトの "TLS"。protocol - プロトコル。