public class KeyStoreCertificateSource extends java.lang.Object implements CertificateAndKeySource
CertificateAndKeySource that loads the root certificate and private key from a Java KeyStore. The
KeyStore must contain a certificate and a private key, specified by the privateKeyAlias value. The KeyStore must
already be loaded and initialized; to load the KeyStore from a file or classpath resource, use
KeyStoreFileCertificateSource, PemFileCertificateSource, or a custom
implementation of CertificateAndKeySource.| Constructor and Description |
|---|
KeyStoreCertificateSource(java.security.KeyStore keyStore,
java.lang.String privateKeyAlias,
java.lang.String keyStorePassword) |
| Modifier and Type | Method and Description |
|---|---|
CertificateAndKey |
load()
Loads a certificate and its corresponding private key.
|
public KeyStoreCertificateSource(java.security.KeyStore keyStore,
java.lang.String privateKeyAlias,
java.lang.String keyStorePassword)
public CertificateAndKey load()
CertificateAndKeySourceCertificateAndKey instance).load in interface CertificateAndKeySource