libcryptosec
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
CertPathValidator Class Reference

Valida certificados X509. More...

#include <CertPathValidator.h>

Public Member Functions

 CertPathValidator (Certificate &untrusted, vector< Certificate > &untrustedChain, vector< Certificate > &trustedChain, DateTime when=DateTime(time(NULL)), vector< CertificateRevocationList > crls=vector< CertificateRevocationList >(), vector< ValidationFlags > flags=vector< ValidationFlags >())
 
virtual ~CertPathValidator ()
 
void setTime (DateTime when)
 
void setUntrusted (Certificate &cert)
 
void setUnstrustedChain (vector< Certificate > &certs)
 
void setTrustedChain (vector< Certificate > &certs)
 
void setCrls (vector< CertificateRevocationList > &crls)
 
void setVerificationFlags (ValidationFlags flag)
 
bool verify ()
 
bool getWarningsStatus ()
 
vector< CertPathValidatorResultgetResults ()
 

Static Public Member Functions

static int callback (int ok, X509_STORE_CTX *ctx)
 

Protected Attributes

vector< ValidationFlagsflags
 
DateTime when
 
Certificateuntrusted
 
vector< Certificate > & trustedChain
 
vector< Certificate > & untrustedChain
 
vector< CertificateRevocationListcrls
 

Static Protected Attributes

static vector< CertPathValidatorResultresults
 

Detailed Description

Valida certificados X509.

Constructor & Destructor Documentation

◆ CertPathValidator()

CertPathValidator::CertPathValidator ( Certificate untrusted,
vector< Certificate > &  untrustedChain,
vector< Certificate > &  trustedChain,
DateTime  when = DateTime(time(NULL)),
vector< CertificateRevocationList crls = vector<CertificateRevocationList>(),
vector< ValidationFlags flags = vector<ValidationFlags>() 
)
inline

◆ ~CertPathValidator()

virtual CertPathValidator::~CertPathValidator ( )
inlinevirtual

Member Function Documentation

◆ callback()

int CertPathValidator::callback ( int  ok,
X509_STORE_CTX *  ctx 
)
static

◆ getResults()

vector< CertPathValidatorResult > CertPathValidator::getResults ( )

◆ getWarningsStatus()

bool CertPathValidator::getWarningsStatus ( )

◆ setCrls()

void CertPathValidator::setCrls ( vector< CertificateRevocationList > &  crls)

◆ setTime()

void CertPathValidator::setTime ( DateTime  when)

◆ setTrustedChain()

void CertPathValidator::setTrustedChain ( vector< Certificate > &  certs)

◆ setUnstrustedChain()

void CertPathValidator::setUnstrustedChain ( vector< Certificate > &  certs)

◆ setUntrusted()

void CertPathValidator::setUntrusted ( Certificate cert)

◆ setVerificationFlags()

void CertPathValidator::setVerificationFlags ( ValidationFlags  flag)

◆ verify()

bool CertPathValidator::verify ( )

Member Data Documentation

◆ crls

vector<CertificateRevocationList> CertPathValidator::crls
protected

◆ flags

vector<ValidationFlags> CertPathValidator::flags
protected

◆ results

vector< CertPathValidatorResult > CertPathValidator::results
staticprotected

◆ trustedChain

vector<Certificate>& CertPathValidator::trustedChain
protected

◆ untrusted

Certificate& CertPathValidator::untrusted
protected

◆ untrustedChain

vector<Certificate>& CertPathValidator::untrustedChain
protected

◆ when

DateTime CertPathValidator::when
protected

The documentation for this class was generated from the following files: