Package org.springframework.boot.ssl
Interface SslStoreBundle
- All Known Implementing Classes:
JksSslStoreBundle
,PemSslStoreBundle
public interface SslStoreBundle
A bundle of key and trust stores that can be used to establish an SSL connection.
- Since:
- 3.1.0
- Author:
- Scott Frederick
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SslStoreBundle
SslStoreBundle
that returnsnull
for each method. -
Method Summary
Modifier and TypeMethodDescriptionReturn a key store generated from the trust material ornull
.Return the password for the key in the key store ornull
.Return a trust store generated from the trust material ornull
.static SslStoreBundle
Factory method to create a newSslStoreBundle
instance.
-
Field Details
-
NONE
SslStoreBundle
that returnsnull
for each method.
-
-
Method Details
-
getKeyStore
KeyStore getKeyStore()Return a key store generated from the trust material ornull
.- Returns:
- the key store
-
getKeyStorePassword
String getKeyStorePassword()Return the password for the key in the key store ornull
.- Returns:
- the key password
-
getTrustStore
KeyStore getTrustStore()Return a trust store generated from the trust material ornull
.- Returns:
- the trust store
-
of
Factory method to create a newSslStoreBundle
instance.- Parameters:
keyStore
- the key store ornull
keyStorePassword
- the key store password ornull
trustStore
- the trust store ornull
- Returns:
- a new
SslStoreBundle
instance
-