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
-
Method Summary
Modifier and TypeMethodDescriptionstatic SslStoreProvider
Create anSslStoreProvider
if the appropriate SSL properties are configured.Return the password of the private key in the key store.Return the key store that should be used.Return the trust store that should be used.
-
Method Details
-
getKeyStore
Description copied from interface:SslStoreProvider
Return the key store that should be used.- Specified by:
getKeyStore
in interfaceSslStoreProvider
- Returns:
- the key store to use
- Throws:
Exception
- on load error
-
getTrustStore
Description copied from interface:SslStoreProvider
Return the trust store that should be used.- Specified by:
getTrustStore
in interfaceSslStoreProvider
- Returns:
- the trust store to use
- Throws:
Exception
- on load error
-
getKeyPassword
Description copied from interface:SslStoreProvider
Return the password of the private key in the key store.- Specified by:
getKeyPassword
in interfaceSslStoreProvider
- Returns:
- the key password
-
from
Create anSslStoreProvider
if the appropriate SSL properties are configured.- Parameters:
ssl
- the SSL properties- Returns:
- an
SslStoreProvider
ornull
-