public class KeyStoreFileCertificateSource extends java.lang.Object implements CertificateAndKeySource
| Constructor and Description |
|---|
KeyStoreFileCertificateSource(java.lang.String keyStoreType,
java.io.File keyStoreFile,
java.lang.String privateKeyAlias,
java.lang.String keyStorePassword)
Creates a
CertificateAndKeySource that loads an existing KeyStore from a classpath resource. |
KeyStoreFileCertificateSource(java.lang.String keyStoreType,
java.lang.String keyStoreClasspathResource,
java.lang.String privateKeyAlias,
java.lang.String keyStorePassword)
Creates a
CertificateAndKeySource that loads an existing KeyStore from a classpath resource. |
| Modifier and Type | Method and Description |
|---|---|
KeyStoreFileCertificateSource |
certificateTool(SecurityProviderTool securityProviderTool)
Override the default
SecurityProviderTool used to load the KeyStore. |
CertificateAndKey |
load()
Loads a certificate and its corresponding private key.
|
public KeyStoreFileCertificateSource(java.lang.String keyStoreType,
java.lang.String keyStoreClasspathResource,
java.lang.String privateKeyAlias,
java.lang.String keyStorePassword)
CertificateAndKeySource that loads an existing KeyStore from a classpath resource.keyStoreType - the KeyStore type, such as PKCS12 or JKSkeyStoreClasspathResource - classpath resource to load (for example, "/keystore.jks")privateKeyAlias - the alias of the private key in the KeyStorekeyStorePassword - te KeyStore passwordpublic KeyStoreFileCertificateSource(java.lang.String keyStoreType,
java.io.File keyStoreFile,
java.lang.String privateKeyAlias,
java.lang.String keyStorePassword)
CertificateAndKeySource that loads an existing KeyStore from a classpath resource.keyStoreType - the KeyStore type, such as PKCS12 or JKSkeyStoreFile - KeyStore file to loadprivateKeyAlias - the alias of the private key in the KeyStorekeyStorePassword - te KeyStore passwordpublic KeyStoreFileCertificateSource certificateTool(SecurityProviderTool securityProviderTool)
SecurityProviderTool used to load the KeyStore.securityProviderTool - securityProviderToolpublic CertificateAndKey load()
CertificateAndKeySourceCertificateAndKey instance).load in interface CertificateAndKeySource