public class HttpClientFactory extends Object
| Constructor and Description |
|---|
HttpClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.impl.client.CloseableHttpClient |
build(KeyStore identityKeyStore,
String clientCertificatePassword)
Construct a HTTP client
|
KeyStore |
loadKeyStore(String clientCertificatePath,
String clientCertificatePassword)
Instantiate Java Keystore for the client certificate
|
public org.apache.http.impl.client.CloseableHttpClient build(KeyStore identityKeyStore, String clientCertificatePassword) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException, KeyManagementException, UnrecoverableKeyException
identityKeyStore - the client keystoreclientCertificatePassword - the password for the client certificate the password of the client certificateKeyStoreException - if there are errors with loading client certificateNoSuchAlgorithmException - if there are errorsCertificateException - if there are errors with loading client certificateIOException - if there are errors with read or writeKeyManagementException - if there are errors with certificateUnrecoverableKeyException - if there are errors with loading client certificatepublic KeyStore loadKeyStore(String clientCertificatePath, String clientCertificatePassword) throws NoSuchAlgorithmException, CertificateException, IOException, KeyStoreException
clientCertificatePath - path to client certificateclientCertificatePassword - the password of the client certificateKeyStoreException - if there are errors with loading client certificateNoSuchAlgorithmException - if there are errorsCertificateException - if there are errors with loading client certificateIOException - if there are errors with read or writeCopyright © 2020 National Institute of Standards and Technology. All rights reserved.