Skip to main content

com.eruces.teagent.TEAgentConnectionFactory

The TEAgentConnectionFactory class creates different types of connections.

Since: 3.0

© Pi Soft, 2018-2026 · Tricryption Engine 8.1

Static Public Attributes

TypeNameDescription
final shortNORMALThe NORMAL field creates a pure connection.
final shortUSER_PASSWORDThe USER_PASSWORD field creates an authenticated connection.
final shortSECURE_USER_PASSWORDThe SECURE_USER_PASSWORD field creates an SSL/TLS connection.
final shortSSLMThe SSLM field creates a mutually authenticated SSL/TLS connection.

Static Public Member Functions

MemberDescription
synchronized TEAgentConnection getInstance(short nType)The getInstance method gets an instance of a TEAgentConnection object.
TEAgentConnection getConnection(short nType)The getConnection method gets a TEAgentConnection object.
TEAgentConnection getConnection(TEConnectionType type)The getConnection method gets a TEAgentConnection object.
AuthenticationContext getAuthenticationContext(TEAuthenticationType type)The getAuthenticationContext method gets the type of authentication in use.

Public Member Functions

MemberDescription
Set keySetConn()The keySetConn method returns a set of connection property keys.
Set keySetAuth()The keySetAuth method returns a set of authentication property keys.
Collection valuesConn()The valuesConn method returns a collection of connection property values.
Collection valuesAuth()The valuesAuth method returns a collection of authentication property values.

Member Function Documentation

synchronized TEAgentConnection getInstance(short nType)

The getInstance method gets an instance of a TEAgentConnection object.

(Using getConnection)

Parameters

ParameterDescription
nTypeA short variable representing the type of connection being retrieved.

Exceptions

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

Returns: TEAgentConnection

TEAgentConnection getConnection(short nType)

The getConnection method gets a TEAgentConnection object.

Parameters

ParameterDescription
nTypeA short variable representing the type of connection being retrieved.

Exceptions

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

Returns: TEAgentConnection

TEAgentConnection getConnection(TEConnectionType type)

The getConnection method gets a TEAgentConnection object.

Parameters

ParameterDescription
typeA TEAgentConnectionType object indicating the type of connection.

Exceptions

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

Returns: TEAgentConnection

AuthenticationContext getAuthenticationContext(TEAuthenticationType type)

The getAuthenticationContext method gets the type of authentication in use.

Parameters

ParameterDescription
typeA TEAuthenticationType object indicating the type of authentication in use.

Returns: Returns an AuthenticationContext object.

Set keySetConn()

The keySetConn method returns a set of connection property keys.

Deprecated

Returns: An unmodifiable Set view of the connection type property keys contained in this factory.

Set keySetAuth()

The keySetAuth method returns a set of authentication property keys.

Deprecated

Returns: Returns an unmodifiable Set view of the authentication module property keys contained in this factory.

Collection valuesConn()

The valuesConn method returns a collection of connection property values.

Deprecated

Returns: Returns an unmodifiable Collection view of the connection property values contained in this factory.

Collection valuesAuth()

The valuesAuth method returns a collection of authentication property values.

Deprecated

Returns: Returns an unmodifiable Collection view of the authentication module property values contained in this factory.

Examples