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