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
FieldsModifier and TypeFieldDescriptionstatic final SslStoreBundleSslStoreBundlethat returnsnullfor each method. -
Method Summary
Modifier and TypeMethodDescription@Nullable KeyStoreReturn a key store generated from the trust material ornull.@Nullable StringReturn the password for the key in the key store ornull.@Nullable KeyStoreReturn a trust store generated from the trust material ornull.static SslStoreBundleFactory method to create a newSslStoreBundleinstance.
-
Field Details
-
NONE
SslStoreBundlethat returnsnullfor each method.
-
-
Method Details
-
getKeyStore
@Nullable KeyStore getKeyStore()Return a key store generated from the trust material ornull.- Returns:
- the key store
-
getKeyStorePassword
@Nullable String getKeyStorePassword()Return the password for the key in the key store ornull.- Returns:
- the key password
-
getTrustStore
@Nullable KeyStore getTrustStore()Return a trust store generated from the trust material ornull.- Returns:
- the trust store
-
of
static SslStoreBundle of(@Nullable KeyStore keyStore, @Nullable String keyStorePassword, @Nullable KeyStore trustStore) Factory method to create a newSslStoreBundleinstance.- Parameters:
keyStore- the key store ornullkeyStorePassword- the key store password ornulltrustStore- the trust store ornull- Returns:
- a new
SslStoreBundleinstance
-