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
- Inherits com.eruces.teagent.TEAgentConnection
Public Member Functions
| Member | Description |
|---|---|
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
| Parameter | Description |
|---|---|
strServerName | A string representing the Key Server name or ip address. |
nPort | An integer representing the Key Service port. |
pfx | A file stream representing the PKCS#12 file. |
password | A 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
| Parameter | Description |
|---|---|
strServerName | A string representing the Key Server name or ip address. |
nPort | An integer representing the Key Service port. |
ks | A KeyStore. |
password | A string representing the password of the private key. |
alias | A 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
| Parameter | Description |
|---|---|
strServerName | A string representing the Key Server name or ip address. |
nPort | An integer representing the Key Service port. |
pfx | A file stream representing the PKCS#12 file. |
password | A 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
| Parameter | Description |
|---|---|
strSvrName | A string representing the Key Server name or ip address. |
nPort | An integer representing the Key Service port. |
ks | A KeyStore. |
password | A string representing the password of the private key. |
alias | A 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
| Parameter | Description |
|---|---|
strServerName | A string representing the Key Server name or ip address. |
nPort | An integer representing the Key Service port. |
strUserName | A string representing the user name. |
strPasswd | A 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
| Parameter | Description |
|---|---|
strServerName | A string representing the Key Server name or ip address. |
nPort | An integer representing the Key Service port. |
ctx | An AuthenticationContext object. |