@Deprecated public class SSLSocketFactoryBuilder extends Object implements SSLProtocols
SSLContextBuilder
Constructor and Description |
---|
SSLSocketFactoryBuilder()
Deprecated.
构造
|
Modifier and Type | Method and Description |
---|---|
SSLSocketFactory |
build()
Deprecated.
构建SSLSocketFactory
|
static SSLSocketFactoryBuilder |
create()
Deprecated.
创建 SSLSocketFactoryBuilder
|
SSLSocketFactoryBuilder |
setKeyManagers(KeyManager... keyManagers)
Deprecated.
设置 JSSE key managers
|
SSLSocketFactoryBuilder |
setProtocol(String protocol)
Deprecated.
设置协议
|
SSLSocketFactoryBuilder |
setSecureRandom(SecureRandom secureRandom)
Deprecated.
设置 SecureRandom
|
SSLSocketFactoryBuilder |
setTrustManagers(TrustManager... trustManagers)
Deprecated.
设置信任信息
|
public static SSLSocketFactoryBuilder create()
public SSLSocketFactoryBuilder setProtocol(String protocol)
protocol
- 协议public SSLSocketFactoryBuilder setTrustManagers(TrustManager... trustManagers)
trustManagers
- TrustManager列表public SSLSocketFactoryBuilder setKeyManagers(KeyManager... keyManagers)
keyManagers
- JSSE key managerspublic SSLSocketFactoryBuilder setSecureRandom(SecureRandom secureRandom)
secureRandom
- SecureRandompublic SSLSocketFactory build() throws NoSuchAlgorithmException, KeyManagementException
NoSuchAlgorithmException
- 无此算法KeyManagementException
- Key管理异常Copyright © 2024. All rights reserved.