Package org.springframework.boot.ssl
Interface SslBundleKey
public interface SslBundleKey
A reference to a single key obtained via
SslBundle
.- Since:
- 3.1.0
- Author:
- Phillip Webb
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
assertContainsAlias
(KeyStore keyStore) Assert that the alias is contained in the given keystore.getAlias()
Return the alias of the key ornull
if the key has no alias.Return the password that should be used to access the key ornull
if no password is required.static SslBundleKey
Factory method to create a newSslBundleKey
instance.static SslBundleKey
Factory method to create a newSslBundleKey
instance.
-
Field Details
-
NONE
SslBundleKey
that returns no values.
-
-
Method Details
-
getPassword
String getPassword()Return the password that should be used to access the key ornull
if no password is required.- Returns:
- the key password
-
getAlias
String getAlias()Return the alias of the key ornull
if the key has no alias.- Returns:
- the key alias
-
assertContainsAlias
Assert that the alias is contained in the given keystore.- Parameters:
keyStore
- the keystore to check
-
of
Factory method to create a newSslBundleKey
instance.- Parameters:
password
- the password used to access the key- Returns:
- a new
SslBundleKey
instance
-
of
Factory method to create a newSslBundleKey
instance.- Parameters:
password
- the password used to access the keyalias
- the alias of the key- Returns:
- a new
SslBundleKey
instance
-