ERUCES::TESSLMutualAuthenticationContext
#include <teauthsslmctx.h>
The TESSLMutualAuthenticationContext class is for the management of TLS mutual authentication connections and PKCS 11,12 authentication.
The TESSLMutualAuthenticationContext represents an authentication context used for TLS Mutual connection and PKCS 11,12 authentication. This class is derived from TEAuthenticationContext class.
Inheritance
- Inherits ERUCES::TEAuthenticationContext
Private Attrib
| Type | Name | Description |
|---|---|---|
| _TESTD string | cert_ | |
| _TESTD string | pkey_ |
Private Func
| Member | Description |
|---|---|
TESSLMutualAuthenticationContext() | The TESSLMutualAuthenticationContext constructor is the default class constructor. |
TESSLMutualAuthenticationContext(const TESSLMutualAuthenticationContext &) | The TESSLMutualAuthenticationContext constructor copies a TESSLMutualAuthenticationContext object. |
Public Member Functions
| Member | Description |
|---|---|
~TESSLMutualAuthenticationContext() | The TESSLMutualAuthenticationContext destructor is the class destructor. |
void setPKCS12(_TESTD string &filename, _TESTD string &password) | The setPKCS12 method sets PKCS 12 file to context. |
const _TESTD string & getCertChain() const | The getCertChain method retrieves the certificate chain. |
const _TESTD string & getPrivateKey() const | The getPrivateKey method retrieves the private key. |
te_oid authenticate() | The authenticate method performs authentication. |
TEObject * clone() const | The clone method clones a TESSLMutualAuthenticationContext object. |
Static Public Member Functions
| Member | Description |
|---|---|
_TESTD auto_ptr< TESSLMutualAuthenticationContext > getInstance() | The getInstance method creates a new TESSLMutualAuthenticationContext object. |
Member Function Documentation
TESSLMutualAuthenticationContext()
The TESSLMutualAuthenticationContext constructor is the default class constructor.
TESSLMutualAuthenticationContext(const TESSLMutualAuthenticationContext &)
The TESSLMutualAuthenticationContext constructor copies a TESSLMutualAuthenticationContext object.
~TESSLMutualAuthenticationContext()
The TESSLMutualAuthenticationContext destructor is the class destructor.
void setPKCS12(_TESTD string &filename, _TESTD string &password)
The setPKCS12 method sets PKCS 12 file to context.
Parameters
| Parameter | Description |
|---|---|
filename | A string representing the file containing the PKCS 12 certificate. |
password | A string representing the private key to the PKCS 12 certificate. |
const _TESTD string & getCertChain() const
The getCertChain method retrieves the certificate chain.
Returns: A string representing the certificate chain.
const _TESTD string & getPrivateKey() const
The getPrivateKey method retrieves the private key.
Returns: A string representing the private key.
te_oid authenticate()
The authenticate method performs authentication.
Returns: Returns a long integer representing the principal ID of the authenticated principal.
TEObject * clone() const
The clone method clones a TESSLMutualAuthenticationContext object.
Returns: A cloned TESSLMutualAuthenticationContext object.
_TESTD auto_ptr< TESSLMutualAuthenticationContext > getInstance()
The getInstance method creates a new TESSLMutualAuthenticationContext object.
Returns: Returns a smart pointer to a TESSLMutualAuthenticationContext object.