public class ClientAuthAdaptor extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
algorithmDefault
The algorithm default.
|
HttpClientFactoryClientAuth |
factory
The factory.
|
String |
keystoreFilePathDefault
The keystore file path default.
|
String |
privKeyPassPhraseFilePathDefault
The private key pass phrase file path default.
|
static boolean |
verifyServerCertDefault
The verify server cert default.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enableClientAuth(io.parallec.core.ParallelClient pc)
Enable client auth with all default.
|
void |
enableClientAuth(io.parallec.core.ParallelClient pc,
String algorithm)
Enable client auth.
|
void |
enableClientAuth(io.parallec.core.ParallelClient pc,
String privKeyPasshraseFilePath,
String keystoreFilePath)
Enable client auth, with default algorithm/verifyServerCert.
|
void |
enableClientAuth(io.parallec.core.ParallelClient pc,
String privKeyPasshraseFilePath,
String keystoreFilePath,
String algorithm)
Enable client auth, with verifyServerCertDefault.
|
void |
enableClientAuth(io.parallec.core.ParallelClient pc,
String privKeyPasshraseFilePath,
String keystoreFilePath,
String algorithm,
boolean verifyServerCert)
Enable client auth.
|
static ClientAuthAdaptor |
getInstance()
Gets the single instance of ClientAuthAdaptor.
|
void |
shutdown()
close the AHC clients and set this factory as null.
|
public String privKeyPassPhraseFilePathDefault
public String keystoreFilePathDefault
public static String algorithmDefault
public static boolean verifyServerCertDefault
public HttpClientFactoryClientAuth factory
public static ClientAuthAdaptor getInstance()
public void enableClientAuth(io.parallec.core.ParallelClient pc)
pc - the pcpublic void enableClientAuth(io.parallec.core.ParallelClient pc,
String algorithm)
pc - the pcalgorithm - the algorithmpublic void enableClientAuth(io.parallec.core.ParallelClient pc,
String privKeyPasshraseFilePath,
String keystoreFilePath)
pc - the pcprivKeyPasshraseFilePath - the priv key passhrase file pathkeystoreFilePath - the keystore file pathpublic void enableClientAuth(io.parallec.core.ParallelClient pc,
String privKeyPasshraseFilePath,
String keystoreFilePath,
String algorithm)
pc - the pcprivKeyPasshraseFilePath - the priv key passhrase file pathkeystoreFilePath - the keystore file pathalgorithm - the algorithmpublic void enableClientAuth(io.parallec.core.ParallelClient pc,
String privKeyPasshraseFilePath,
String keystoreFilePath,
String algorithm,
boolean verifyServerCert)
pc - the ParallelClientprivKeyPasshraseFilePath - the priv key passhrase file pathkeystoreFilePath - the keystore file pathalgorithm - the algorithmverifyServerCert - the verify server certpublic void shutdown()
Copyright © 2015 eBay. All rights reserved.