Class SslContextFactory
java.lang.Object
org.springframework.boot.buildpack.platform.docker.ssl.SslContextFactory
Builds an
SSLContext for use with an HTTP connection.- Since:
- 2.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionforDirectory(String directory) Create anSSLContextfrom files in the specified directory.
-
Constructor Details
-
SslContextFactory
public SslContextFactory()
-
-
Method Details
-
forDirectory
Create anSSLContextfrom files in the specified directory. The directory must contain files with the names 'key.pem', 'cert.pem', and 'ca.pem'.- Parameters:
directory- the path to a directory containing certificate and key files- Returns:
- the
SSLContext
-