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
- Author:
- Scott Frederick, Phillip Webb
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionforDirectory
(String directory) Create anSSLContext
from files in the specified directory.
-
Constructor Details
-
SslContextFactory
public SslContextFactory()
-
-
Method Details
-
forDirectory
Create anSSLContext
from 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
-