接口 PemSslStore
- 所有已知实现类:
LoadedPemSslStore
public interface PemSslStore
An individual trust or key store that has been loaded from PEM content.
- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Harry Yang
- 另请参阅:
-
方法概要
修饰符和类型方法说明alias()The alias used when setting entries in theKeyStore.The certificates for this store.static PemSslStoreload(PemSslStoreDetails details) Return aPemSslStoreinstance loaded using the givenPemSslStoreDetails.static PemSslStoreof(String type, String alias, String password, List<X509Certificate> certificates, PrivateKey privateKey) Factory method that can be used to create a newPemSslStorewith the given values.static PemSslStoreof(String type, List<X509Certificate> certificates, PrivateKey privateKey) Factory method that can be used to create a newPemSslStorewith the given values.static PemSslStoreof(List<X509Certificate> certificates, PrivateKey privateKey) Factory method that can be used to create a newPemSslStorewith the given values.password()The password used whensetting key entriesin theKeyStore.The private key for this store ornull.type()The key store type, for exampleJKSorPKCS11.default PemSslStoreReturn a newPemSslStoreinstance with a new alias.default PemSslStorewithPassword(String password) Return a newPemSslStoreinstance with a new password.
-
方法详细资料
-
type
- 返回:
- the key store type
-
alias
The alias used when setting entries in theKeyStore.- 返回:
- the alias
-
password
The password used whensetting key entriesin theKeyStore.- 返回:
- the password
-
certificates
List<X509Certificate> certificates()The certificates for this store. When aprivate keyis present the returned value is treated as a certificate chain, otherwise it is treated a list of certificates that should all be registered.- 返回:
- the X509 certificates
-
privateKey
The private key for this store ornull.- 返回:
- the private key
-
withAlias
Return a newPemSslStoreinstance with a new alias.- 参数:
alias- the new alias- 返回:
- a new
PemSslStoreinstance
-
withPassword
Return a newPemSslStoreinstance with a new password.- 参数:
password- the new password- 返回:
- a new
PemSslStoreinstance
-
load
Return aPemSslStoreinstance loaded using the givenPemSslStoreDetails.- 参数:
details- the PEM store details- 返回:
- a loaded
PemSslStoreornull.
-
of
Factory method that can be used to create a newPemSslStorewith the given values.- 参数:
type- the key store typecertificates- the certificates for this storeprivateKey- the private key- 返回:
- a new
PemSslStoreinstance
-
of
Factory method that can be used to create a newPemSslStorewith the given values.- 参数:
certificates- the certificates for this storeprivateKey- the private key- 返回:
- a new
PemSslStoreinstance
-
of
static PemSslStore of(@Nullable String type, @Nullable String alias, @Nullable String password, List<X509Certificate> certificates, @Nullable PrivateKey privateKey) Factory method that can be used to create a newPemSslStorewith the given values.- 参数:
type- the key store typealias- the alias used when setting entries in theKeyStorepassword- the password usedsetting key entriesin theKeyStorecertificates- the certificates for this storeprivateKey- the private key- 返回:
- a new
PemSslStoreinstance
-