类 PemSslStoreBundle
java.lang.Object
cn.taketoday.core.ssl.pem.PemSslStoreBundle
- 所有已实现的接口:
SslStoreBundle
SslStoreBundle backed by PEM-encoded certificates and private keys.- 从以下版本开始:
- 4.0
- 作者:
- Scott Frederick, Phillip Webb, Harry Yang
-
字段概要
字段从接口继承的字段 cn.taketoday.core.ssl.SslStoreBundle
NONE -
构造器概要
构造器构造器说明PemSslStoreBundle(PemSslStoreDetails keyStoreDetails, PemSslStoreDetails trustStoreDetails) Create a newPemSslStoreBundleinstance.PemSslStoreBundle(PemSslStoreDetails keyStoreDetails, PemSslStoreDetails trustStoreDetails, String keyAlias) Create a newPemSslStoreBundleinstance.PemSslStoreBundle(PemSslStoreDetails keyStoreDetails, PemSslStoreDetails trustStoreDetails, String keyAlias, String keyPassword) Create a newPemSslStoreBundleinstance. -
方法概要
修饰符和类型方法说明private voidaddCertificates(KeyStore keyStore, X509Certificate[] certificates, PrivateKey privateKey, String alias, String keyPassword) private KeyStorecreateKeyStore(String name, PemSslStoreDetails details, String alias, String keyPassword) Return 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.
-
字段详细资料
-
DEFAULT_KEY_ALIAS
- 另请参阅:
-
keyStore
-
trustStore
-
-
构造器详细资料
-
PemSslStoreBundle
public PemSslStoreBundle(@Nullable PemSslStoreDetails keyStoreDetails, @Nullable PemSslStoreDetails trustStoreDetails) Create a newPemSslStoreBundleinstance.- 参数:
keyStoreDetails- the key store detailstrustStoreDetails- the trust store details
-
PemSslStoreBundle
public PemSslStoreBundle(@Nullable PemSslStoreDetails keyStoreDetails, @Nullable PemSslStoreDetails trustStoreDetails, @Nullable String keyAlias) Create a newPemSslStoreBundleinstance.- 参数:
keyStoreDetails- the key store detailstrustStoreDetails- the trust store detailskeyAlias- the key alias to use ornullto use a default alias
-
PemSslStoreBundle
public PemSslStoreBundle(@Nullable PemSslStoreDetails keyStoreDetails, @Nullable PemSslStoreDetails trustStoreDetails, @Nullable String keyAlias, @Nullable String keyPassword) Create a newPemSslStoreBundleinstance.- 参数:
keyStoreDetails- the key store detailstrustStoreDetails- the trust store detailskeyAlias- the key alias to use ornullto use a default aliaskeyPassword- the password to use for the key
-
-
方法详细资料
-
getKeyStore
从接口复制的说明:SslStoreBundleReturn a key store generated from the trust material ornull.- 指定者:
getKeyStore在接口中SslStoreBundle- 返回:
- the key store
-
getKeyStorePassword
从接口复制的说明:SslStoreBundleReturn the password for the key in the key store ornull.- 指定者:
getKeyStorePassword在接口中SslStoreBundle- 返回:
- the key password
-
getTrustStore
从接口复制的说明:SslStoreBundleReturn a trust store generated from the trust material ornull.- 指定者:
getTrustStore在接口中SslStoreBundle- 返回:
- the trust store
-
createKeyStore
-
addCertificates
private void addCertificates(KeyStore keyStore, @Nullable X509Certificate[] certificates, @Nullable PrivateKey privateKey, String alias, @Nullable String keyPassword) throws KeyStoreException
-