Skip to main content

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

Private Attrib

TypeNameDescription
_TESTD stringcert_
_TESTD stringpkey_

Private Func

MemberDescription
TESSLMutualAuthenticationContext()The TESSLMutualAuthenticationContext constructor is the default class constructor.
TESSLMutualAuthenticationContext(const TESSLMutualAuthenticationContext &)The TESSLMutualAuthenticationContext constructor copies a TESSLMutualAuthenticationContext object.

Public Member Functions

MemberDescription
~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() constThe getCertChain method retrieves the certificate chain.
const _TESTD string & getPrivateKey() constThe getPrivateKey method retrieves the private key.
te_oid authenticate()The authenticate method performs authentication.
TEObject * clone() constThe clone method clones a TESSLMutualAuthenticationContext object.

Static Public Member Functions

MemberDescription
_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

ParameterDescription
filenameA string representing the file containing the PKCS 12 certificate.
passwordA 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.