Skip to main content

com.eruces.teagent.TEAgentSSLMConnection

The TEAgentSSLMConnection class is used for certificate user TLS Mutual authentication connection and PKCS -12 authentication to connect to the Key Server.

Inheritance

Public Member Functions

MemberDescription
TEAgentSSLMConnection()The TEAgentSSLMConnection constructor is creates a non-connected object.
TEAgentSSLMConnection(String strServerName, int nPort, InputStream pfx, String password)The TEAgentSSLMConnection constructor creates a connection and authenticates the user.
TEAgentSSLMConnection(String strServerName, int nPort, KeyStore ks, String password, String alias)The TEAgentSSLMConnection constructor is the default class constructor.
synchronized void open(String strServerName, int nPort, InputStream pfx, String password)The open method opens a connection with the InputStream of a PKCS#12 file and password.
synchronized void open(String strSvrName, int nPort, KeyStore ks, String password, String alias)The open method opens a connection with a KeyStore and and password.
synchronized void open(String strServerName, int nPort, String strUserName, String strPasswd)The open method opens a connection with a user name and password.
synchronized void open(String strServerName, int nPort, AuthenticationContext ctx)The open method opens a connection with an AuthenticationContext.

Member Function Documentation

TEAgentSSLMConnection()

The TEAgentSSLMConnection constructor is creates a non-connected object.

TEAgentSSLMConnection(String strServerName, int nPort, InputStream pfx, String password)

The TEAgentSSLMConnection constructor creates a connection and authenticates the user.

Parameters

ParameterDescription
strServerNameA string representing the Key Server name or ip address.
nPortAn integer representing the Key Service port.
pfxA file stream representing the PKCS#12 file.
passwordA string representing the password of the private key.

TEAgentSSLMConnection(String strServerName, int nPort, KeyStore ks, String password, String alias)

The TEAgentSSLMConnection constructor is the default class constructor.

Parameters

ParameterDescription
strServerNameA string representing the Key Server name or ip address.
nPortAn integer representing the Key Service port.
ksA KeyStore.
passwordA string representing the password of the private key.
aliasA string representing the alias of the key entry in the key store.

synchronized void open(String strServerName, int nPort, InputStream pfx, String password)

The open method opens a connection with the InputStream of a PKCS#12 file and password.

Parameters

ParameterDescription
strServerNameA string representing the Key Server name or ip address.
nPortAn integer representing the Key Service port.
pfxA file stream representing the PKCS#12 file.
passwordA string representing the password of the private key.

synchronized void open(String strSvrName, int nPort, KeyStore ks, String password, String alias)

The open method opens a connection with a KeyStore and and password.

Parameters

ParameterDescription
strSvrNameA string representing the Key Server name or ip address.
nPortAn integer representing the Key Service port.
ksA KeyStore.
passwordA string representing the password of the private key.
aliasA string representing the alias of the key entry in the key store.

synchronized void open(String strServerName, int nPort, String strUserName, String strPasswd)

The open method opens a connection with a user name and password.

Parameters

ParameterDescription
strServerNameA string representing the Key Server name or ip address.
nPortAn integer representing the Key Service port.
strUserNameA string representing the user name.
strPasswdA string representing the password of the private key.

synchronized void open(String strServerName, int nPort, AuthenticationContext ctx)

The open method opens a connection with an AuthenticationContext.

Parameters

ParameterDescription
strServerNameA string representing the Key Server name or ip address.
nPortAn integer representing the Key Service port.
ctxAn AuthenticationContext object.