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
- Inherits ERUCES::TEAuthenticationContext
Protected Member Functions
| Member | Description |
|---|---|
TEX509AuthenticationContext() | The TEX509AuthenticationContext constructor is the default class constructor. |
Public Member Functions
| Member | Description |
|---|---|
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. |
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. |
te_oid authenticate() | The authenticate method performs authentication. |
TEObject * clone() const | The 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
| Parameter | Description |
|---|---|
buffer | A string representing the certificate. |
bufsize | The 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
| Parameter | Description |
|---|---|
buffer | A 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