Interface SslBundleKey
public interface SslBundleKey
A reference to a single key obtained via 
SslBundle.- Since:
- 3.1.0
- Author:
- Phillip Webb
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidassertContainsAlias(@Nullable KeyStore keyStore) Assert that the alias is contained in the given keystore.@Nullable StringgetAlias()Return the alias of the key ornullif the key has no alias.@Nullable StringReturn the password that should be used to access the key ornullif no password is required.static SslBundleKeyFactory method to create a newSslBundleKeyinstance.static SslBundleKeyFactory method to create a newSslBundleKeyinstance.
- 
Field Details- 
NONESslBundleKeythat returns no values.
 
- 
- 
Method Details- 
getPassword@Nullable String getPassword()Return the password that should be used to access the key ornullif no password is required.- Returns:
- the key password
 
- 
getAlias@Nullable String getAlias()Return the alias of the key ornullif the key has no alias.- Returns:
- the key alias
 
- 
assertContainsAliasAssert that the alias is contained in the given keystore.- Parameters:
- keyStore- the keystore to check
 
- 
ofFactory method to create a newSslBundleKeyinstance.- Parameters:
- password- the password used to access the key
- Returns:
- a new SslBundleKeyinstance
 
- 
ofFactory method to create a newSslBundleKeyinstance.- Parameters:
- password- the password used to access the key
- alias- the alias of the key
- Returns:
- a new SslBundleKeyinstance
 
 
-