| 程序包 | 说明 |
|---|---|
| org.apache.hc.client5.http.ssl |
Client TLS/SSL support.
|
| org.apache.hc.core5.ssl |
Utility classes for trust and key material management
and TLS/SSL context initialization.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
TrustAllStrategy
A trust strategy that accepts all certificates as trusted.
|
class |
TrustSelfSignedStrategy
A trust strategy that accepts self-signed certificates as trusted.
|
| 限定符和类型 | 方法和说明 |
|---|---|
SSLContextBuilder |
SSLContextBuilder.loadTrustMaterial(File file,
char[] storePassword,
TrustStrategy trustStrategy) |
SSLContextBuilder |
SSLContextBuilder.loadTrustMaterial(KeyStore trustStore,
TrustStrategy trustStrategy) |
SSLContextBuilder |
SSLContextBuilder.loadTrustMaterial(Path file,
char[] storePassword,
TrustStrategy trustStrategy,
OpenOption... openOptions) |
SSLContextBuilder |
SSLContextBuilder.loadTrustMaterial(TrustStrategy trustStrategy) |
SSLContextBuilder |
SSLContextBuilder.loadTrustMaterial(URL url,
char[] storePassword,
TrustStrategy trustStrategy) |
Copyright © 2023. All rights reserved.