public class KeyStoreFileCertificateSource extends Object implements CertificateAndKeySource
| Constructor and Description |
|---|
KeyStoreFileCertificateSource(String keyStoreType,
File keyStoreFile,
String privateKeyAlias,
String keyStorePassword)
Creates a
CertificateAndKeySource that loads an existing KeyStore from a classpath resource. |
KeyStoreFileCertificateSource(String keyStoreType,
String keyStoreClasspathResource,
String privateKeyAlias,
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(String keyStoreType, String keyStoreClasspathResource, String privateKeyAlias, 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(String keyStoreType, File keyStoreFile, String privateKeyAlias, 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.public CertificateAndKey load()
CertificateAndKeySourceCertificateAndKey instance).load in interface CertificateAndKeySourceCopyright © 2017. All rights reserved.