类 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 alias) Create a newPemSslStoreBundleinstance.PemSslStoreBundle(PemSslStore pemKeyStore, PemSslStore pemTrustStore) Create a newPemSslStoreBundleinstance. -
方法概要
修饰符和类型方法说明private static voidaddCertificates(KeyStore keyStore, List<X509Certificate> certificates, String alias) private static voidaddPrivateKey(KeyStore keyStore, PrivateKey privateKey, String alias, String keyPassword, List<X509Certificate> certificateChain) private static KeyStorecreateKeyStore(String type) private static KeyStorecreateKeyStore(String name, PemSslStore pemSslStore, String alias) 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.toString()
-
字段详细资料
-
DEFAULT_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 alias) Create a newPemSslStoreBundleinstance.- 参数:
keyStoreDetails- the key store detailstrustStoreDetails- the trust store detailsalias- the alias to use ornullto use a default alias
-
PemSslStoreBundle
Create a newPemSslStoreBundleinstance.- 参数:
pemKeyStore- the PEM key storepemTrustStore- the PEM trust store
-
-
方法详细资料
-
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
-
createKeyStore
private static KeyStore createKeyStore(@Nullable String type) throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException -
addPrivateKey
private static void addPrivateKey(KeyStore keyStore, PrivateKey privateKey, String alias, @Nullable String keyPassword, List<X509Certificate> certificateChain) throws KeyStoreException -
addCertificates
private static void addCertificates(KeyStore keyStore, List<X509Certificate> certificates, String alias) throws KeyStoreException -
toString
-