Skip to main content

tech.pisoft.teagent.TEAgentSSLAuthenticConnection

The TEAgentSSLAuthenticConnection class opens an TLS (formerly SSL) secured connection with username and password authentication.

Since: 1.0

© Pi Soft, 2018-2026 · Tricryption Engine 8.1

Inheritance​

Static Public Attributes​

TypeNameDescription
final StringSSL_VERSION_SYS_PROPERTYSystem property that pins the KS-facing TLS protocol to a single explicit version (e.g.
final StringDEFAULT_SSL_VERSIONSSLContext factory algorithm for the agile default.
final String[]DEFAULT_SSL_PROTOCOLSAgile default enabled-protocol list.

Public Member Functions​

MemberDescription
TEAgentSSLAuthenticConnection()The TEAgentSSLAuthenticConnection constructor constructs a non-connected object.
TEAgentSSLAuthenticConnection(String strServerName, int nPort, String strUserName, String strPasswd)The TEAgentSSLAuthenticConnection constructor specifies a server name, port number, username and password.
synchronized void open(String strServerName, int nPort, AuthenticationContext ctx)The open method opens a connection and authenticates with a context.

Member Function Documentation​

TEAgentSSLAuthenticConnection()​

The TEAgentSSLAuthenticConnection constructor constructs a non-connected object.

TEAgentSSLAuthenticConnection(String strServerName, int nPort, String strUserName, String strPasswd)​

The TEAgentSSLAuthenticConnection constructor specifies a server name, port number, username and password.

Parameters

ParameterDescription
strServerNameA string representing the name or IP of the Key Server.
nPortAn integer representing a Key Service communication port number.
strUserNameA string representing a username.
strPasswdA string representing a password.

Exceptions

ExceptionDescription
TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

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

The open method opens a connection and authenticates with a context.

A GSSAPIAuthenticationContext (a Kerberos login) opens a SERVER-VERIFYING connection: the JDK's PKIX trust manager over the anchors the context names and nothing else, nothing forgiven, the handshake completed here so a key server that does not verify is refused as that, by name, before any protocol byte – and a context naming no anchor is refused before anything is dialled. Every other context opens as before (its own exchange authenticates the server: SRP-6a's M2 proof).

Parameters

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

Exceptions

ExceptionDescription
TEAgentExceptionSSL_CONNECTION_ERR "the key server's certificate did not verify: ..." or naming the missing anchor; otherwise if the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).