接口 SslBundleKey
public interface SslBundleKey
A reference to a single key obtained via
SslBundle.- 从以下版本开始:
- 3.1.0
- 作者:
- Phillip Webb
-
字段概要
字段 -
方法概要
修饰符和类型方法说明default voidassertContainsAlias(KeyStore keyStore) Assert that the alias is contained in the given keystore.getAlias()Return the alias of the key ornullif the key has no alias.Return 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.
-
字段详细资料
-
NONE
SslBundleKeythat returns no values.
-
-
方法详细资料
-
getPassword
String getPassword()Return the password that should be used to access the key ornullif no password is required.- 返回:
- the key password
-
getAlias
String getAlias()Return the alias of the key ornullif the key has no alias.- 返回:
- the key alias
-
assertContainsAlias
Assert that the alias is contained in the given keystore.- 参数:
keyStore- the keystore to check
-
of
Factory method to create a newSslBundleKeyinstance.- 参数:
password- the password used to access the key- 返回:
- a new
SslBundleKeyinstance
-
of
Factory method to create a newSslBundleKeyinstance.- 参数:
password- the password used to access the keyalias- the alias of the key- 返回:
- a new
SslBundleKeyinstance
-