类 SslContextFactory
java.lang.Object
cn.taketoday.buildpack.platform.docker.ssl.SslContextFactory
Builds an
SSLContext for use with an HTTP connection.- 从以下版本开始:
- 4.0
- 作者:
- Scott Frederick, Phillip Webb, Harry Yang
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明forDirectory(String directory) Create anSSLContextfrom files in the specified directory.private KeyManagerFactorygetKeyManagerFactory(Path keyPath, Path certPath) private TrustManagerFactorygetTrustManagerFactory(Path caPath, Path caKeyPath) private static voidverifyCertificateFiles(Path... paths)
-
字段详细资料
-
NO_PASSWORD
private static final char[] NO_PASSWORD -
KEY_STORE_ALIAS
- 另请参阅:
-
-
构造器详细资料
-
SslContextFactory
public SslContextFactory()
-
-
方法详细资料
-
forDirectory
Create anSSLContextfrom files in the specified directory. The directory must contain files with the names 'key.pem', 'cert.pem', and 'ca.pem'.- 参数:
directory- the path to a directory containing certificate and key files- 返回:
- the
SSLContext
-
getKeyManagerFactory
- 抛出:
Exception
-
getTrustManagerFactory
private TrustManagerFactory getTrustManagerFactory(Path caPath, Path caKeyPath) throws NoSuchAlgorithmException, KeyStoreException -
verifyCertificateFiles
-