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
| Type | Name | Description |
|---|---|---|
| final String | PKCS12_TRICRYPTION_USER_ALIAS | System property for module name. |
| final String | PKCS12_TRICRYPTION_USER_ALIAS_PROPERTY | A string representing. |
Public Member Functions
| Member | Description |
|---|---|
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
| Member | Description |
|---|---|
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
| Parameter | Description |
|---|---|
objSec | A 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
| Parameter | Description |
|---|---|
pfx | objSec A secret property object; both a username and a password object are needed. |
passwd | A 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
| Parameter | Description |
|---|---|
ks | A KeyStore object. |
password | A string representing the password. |
alias | An 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
| Parameter | Description |
|---|---|
anchor | A stream holding one or more X.509 certificates, PEM or DER. A certificate that is not self-signed pins that certificate. |
Exceptions
| Exception | Description |
|---|---|
TEAgentException | SSL_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
| Parameter | Description |
|---|---|
ksStream | A secret property object; both a username and a password object are needed. |
password | A string representing the password. |
alias | An 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.