public class KeyStoreCertificateSource extends 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(KeyStore keyStore,
String privateKeyAlias,
String keyStorePassword) |
| Modifier and Type | Method and Description |
|---|---|
CertificateAndKey |
load()
Loads a certificate and its corresponding private key.
|
public CertificateAndKey load()
CertificateAndKeySourceCertificateAndKey instance).load in interface CertificateAndKeySourceCopyright © 2016. All rights reserved.