Package org.springframework.boot.ssl.pem
Class PemSslStoreBundle
java.lang.Object
org.springframework.boot.ssl.pem.PemSslStoreBundle
- All Implemented Interfaces:
SslStoreBundle
SslStoreBundle
backed by PEM-encoded certificates and private keys.- Since:
- 3.1.0
- Author:
- Scott Frederick, Phillip Webb, Moritz Halbritter
-
Field Summary
Fields inherited from interface org.springframework.boot.ssl.SslStoreBundle
NONE
-
Constructor Summary
ConstructorDescriptionPemSslStoreBundle
(PemSslStoreDetails keyStoreDetails, PemSslStoreDetails trustStoreDetails) Create a newPemSslStoreBundle
instance.PemSslStoreBundle
(PemSslStoreDetails keyStoreDetails, PemSslStoreDetails trustStoreDetails, String alias) Deprecated, for removal: This API element is subject to removal in a future version.PemSslStoreBundle
(PemSslStore pemKeyStore, PemSslStore pemTrustStore) Create a newPemSslStoreBundle
instance. -
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
.
-
Constructor Details
-
PemSslStoreBundle
Create a newPemSslStoreBundle
instance.- Parameters:
keyStoreDetails
- the key store detailstrustStoreDetails
- the trust store details
-
PemSslStoreBundle
@Deprecated(since="3.2.0", forRemoval=true) public PemSslStoreBundle(PemSslStoreDetails keyStoreDetails, PemSslStoreDetails trustStoreDetails, String alias) Deprecated, for removal: This API element is subject to removal in a future version.since 3.2.0 for removal in 3.4.0 in favor ofPemSslStoreDetails.alias()
in thekeyStoreDetails
andtrustStoreDetails
Create a newPemSslStoreBundle
instance.- Parameters:
keyStoreDetails
- the key store detailstrustStoreDetails
- the trust store detailsalias
- the alias to use ornull
to use a default alias
-
PemSslStoreBundle
Create a newPemSslStoreBundle
instance.- Parameters:
pemKeyStore
- the PEM key storepemTrustStore
- the PEM trust store- Since:
- 3.2.0
-
-
Method Details
-
getKeyStore
Description copied from interface:SslStoreBundle
Return a key store generated from the trust material ornull
.- Specified by:
getKeyStore
in interfaceSslStoreBundle
- Returns:
- the key store
-
getKeyStorePassword
Description copied from interface:SslStoreBundle
Return the password for the key in the key store ornull
.- Specified by:
getKeyStorePassword
in interfaceSslStoreBundle
- Returns:
- the key password
-
getTrustStore
Description copied from interface:SslStoreBundle
Return a trust store generated from the trust material ornull
.- Specified by:
getTrustStore
in interfaceSslStoreBundle
- Returns:
- the trust store
-
PemSslStoreDetails.alias()
in thekeyStoreDetails
andtrustStoreDetails