public class KountHttpTransport extends Transport
| Modifier and Type | Field and Description |
|---|---|
protected String |
algorithm
Default algorithm to use for ssl key manager.
|
protected SSLSocketFactory |
factory
SSL socket factory.
|
protected String |
pkcs12file
Path to cert file.
|
protected InputStream |
pkcs12In
Cert file input stream.
|
protected char[] |
privateKeyPassphrase
Private key pass phrase.
|
connectTimeout, readTimeout, risServerUrl| Constructor and Description |
|---|
KountHttpTransport()
Default transport constructor.
|
KountHttpTransport(String phrase,
String url,
InputStream p12in)
Constructor that accepts a private key pass phrase, a RIS url, and a
PKCS12 resource stream as input.
|
KountHttpTransport(String phrase,
String url,
String p12file)
Constructor that accepts a private key pass phrase, a RIS url, and a
PKCS12 file path as input.
|
| Modifier and Type | Method and Description |
|---|---|
protected InputStream |
getPkcs12Data()
Fetch data contained in PKCS12 private key file.
|
protected SSLSocketFactory |
getSSLSocketFactory()
Get an SSL Socket factory.
|
Reader |
send(Map<String,String> params)
Send transaction data to RIS.
|
void |
setAlgorithm(String a)
Set the standard algorithm to use for the javax.net.ssl.KeyManagerFactory
See Java online documentation for a list of version J2SE 1.4 supported
algorithms.
|
void |
setPassPhrase(String p)
Set the private key pass phrase.
|
convertToNameValuePair, setConnectTimeout, setReadTimeout, setRisServerUrl, writeParametersToOutputprotected SSLSocketFactory factory
protected char[] privateKeyPassphrase
protected InputStream pkcs12In
protected String pkcs12file
protected String algorithm
public KountHttpTransport()
public KountHttpTransport(String phrase, String url, String p12file)
phrase - Private key pass phraseurl - Ris server urlp12file - Private key filepublic KountHttpTransport(String phrase, String url, InputStream p12in)
phrase - Private key pass phraseurl - Ris server urlp12in - Private key resource streampublic void setPassPhrase(String p)
p - Pass phrasepublic void setAlgorithm(String a)
a - Name of standard algorithm.public Reader send(Map<String,String> params) throws RisTransportException
send in class Transportparams - Map of data to sendRisTransportException - RIS transport exceptionprotected SSLSocketFactory getSSLSocketFactory() throws RisTransportException
RisTransportException - RIS transport exceptionprotected InputStream getPkcs12Data() throws RisTransportException
RisTransportException - RIS transport exceptionCopyright © 2022. All rights reserved.