Skip to main content

tech.pisoft.teagent.SSLMAuthenticationContext

The TESSLMutualAuthenticationContext represents an authentication context used for TLS Mutual connection and PKCS 11,12 authentication.

This class is derived from TEAuthenticationContext class.LDAPAuthenticationContext class.

Since: 3.1

© Pi Soft, 2018-2026 · Tricryption Engine 8.1

Inheritance​

Static Public Attributes​

TypeNameDescription
final StringPKCS12_TRICRYPTION_USER_ALIASSystem property for module name.
final StringPKCS12_TRICRYPTION_USER_ALIAS_PROPERTYA string representing.

Public Member Functions​

MemberDescription
SSLMAuthenticationContext()The SSLMAuthenticationContext constructor is the default class constructor.
void setSecret(Object objSec)The setSecret method sets secret authentication information.
void setSecret(InputStream pfx, String passwd)The setSecret method sets secret authentication information.
void setSecret(KeyStore ks, String password, String alias)The setSecret method sets secret authentication information.
void setServerAnchor(InputStream anchor)The setServerAnchor method names the certificate the connection trusts the Key Server by, when the PKCS 12 chain does not carry the Key Server's CA.
void setSecret(InputStream ksStream, String password, String alias)The setSecret method sets secret authentication information.

Static Public Member Functions​

MemberDescription
SSLMAuthenticationContext getInstance()The getInstance method if a factory method that gets an instance of the UPAuthenticationContext class.

Member Function Documentation​

SSLMAuthenticationContext()​

The SSLMAuthenticationContext constructor is the default class constructor.

void setSecret(Object objSec)​

The setSecret method sets secret authentication information.

Parameters

ParameterDescription
objSecA secret property object; both a username and a password object are needed.

Remark: Specified by the setSecret method in the AuthenticationContext class.

void setSecret(InputStream pfx, String passwd)​

The setSecret method sets secret authentication information.

Parameters

ParameterDescription
pfxobjSec A secret property object; both a username and a password object are needed.
passwdA string representing the password.

Remark: Specified by the setSecret method in the AuthenticationContext class.

void setSecret(KeyStore ks, String password, String alias)​

The setSecret method sets secret authentication information.

Parameters

ParameterDescription
ksA KeyStore object.
passwordA string representing the password.
aliasAn alias.

Remark: Specified by the setSecret method in the AuthenticationContext class.

void setServerAnchor(InputStream anchor)​

The setServerAnchor method names the certificate the connection trusts the Key Server by, when the PKCS 12 chain does not carry the Key Server's CA.

Parameters

ParameterDescription
anchorA stream holding one or more X.509 certificates, PEM or DER. A certificate that is not self-signed pins that certificate.

Exceptions

ExceptionDescription
TEAgentExceptionSSL_CONNECTION_ERR naming the cause if the stream holds no certificate.

void setSecret(InputStream ksStream, String password, String alias)​

The setSecret method sets secret authentication information.

Parameters

ParameterDescription
ksStreamA secret property object; both a username and a password object are needed.
passwordA string representing the password.
aliasAn alias.

Remark: Specified by the setSecret method in the AuthenticationContext class.

SSLMAuthenticationContext getInstance()​

The getInstance method if a factory method that gets an instance of the UPAuthenticationContext class.

Returns: Returns a UPAuthenticationContext object.