Skip to main content

ERUCES::TEX509AuthenticationContext

#include <teauthcertctx.h>

The TEX509AuthenticationContext class manages X.509 digital certificates.

The TEX509AuthenticationContext class represents an X.509 digital certificate authentication context in which user is authenticated by X.509 certificate and private key. This class is derived from the TEAuthenticationContext class.

Inheritance

Protected Member Functions

MemberDescription
TEX509AuthenticationContext()The TEX509AuthenticationContext constructor is the default class constructor.

Public Member Functions

MemberDescription
void getCertificate(unsigned char *buffer, size_t &bufsize)=0The getCertificate method must be implemented in inherited class certificate is expected to presented for authentication claim.
void decryptAndSign(Buffer &buffer)=0The decryptAndSign method must be implemented in inherited class challenge is to be decrypted with private key corresponding to certificate, submitted earlier and than signed with SHA -1 digest.
te_oid authenticate()The authenticate method performs authentication.
TEObject * clone() constThe clone method clones the TEAuthenticationContext object.

Member Function Documentation

TEX509AuthenticationContext()

The TEX509AuthenticationContext constructor is the default class constructor.

void getCertificate(unsigned char *buffer, size_t &bufsize)=0

The getCertificate method must be implemented in inherited class certificate is expected to presented for authentication claim.

Parameters

ParameterDescription
bufferA string representing the certificate.
bufsizeThe size of the buffer.

void decryptAndSign(Buffer &buffer)=0

The decryptAndSign method must be implemented in inherited class challenge is to be decrypted with private key corresponding to certificate, submitted earlier and than signed with SHA -1 digest.

Parameters

ParameterDescription
bufferA string representing the certificate.

te_oid authenticate()

The authenticate method performs authentication.

Returns: Principal ID of authenticated principal.

TEObject * clone() const

The clone method clones the TEAuthenticationContext object.

Returns: Cloned TEAuthenticationContext object