Class CertificateFileSslStoreProvider
java.lang.Object
org.springframework.boot.web.server.CertificateFileSslStoreProvider
- All Implemented Interfaces:
SslStoreProvider
An
SslStoreProvider that creates key and trust stores from certificate and
private key PEM files.- Since:
- 2.7.0
- Author:
- Scott Frederick
-
Method Summary
Modifier and TypeMethodDescriptionstatic SslStoreProviderCreate aSslStoreProviderif the appropriate SSL properties are configured.Return the key store that should be used.Return the trust store that should be used.
-
Method Details
-
getKeyStore
Description copied from interface:SslStoreProviderReturn the key store that should be used.- Specified by:
getKeyStorein interfaceSslStoreProvider- Returns:
- the key store to use
- Throws:
Exception- on load error
-
getTrustStore
Description copied from interface:SslStoreProviderReturn the trust store that should be used.- Specified by:
getTrustStorein interfaceSslStoreProvider- Returns:
- the trust store to use
- Throws:
Exception- on load error
-
from
Create aSslStoreProviderif the appropriate SSL properties are configured.- Parameters:
ssl- the SSL properties- Returns:
- a
SslStoreProviderornull
-