libcryptosec
Public Member Functions | List of all members
SmartcardCertificate Class Reference

#include <SmartcardCertificate.h>

Public Member Functions

 SmartcardCertificate (std::string &id, std::string &label, std::string &serial, X509 *cert)
 
virtual ~SmartcardCertificate ()
 
std::string getId ()
 
std::string getLabel ()
 
std::string getSerial ()
 
CertificategetCertificate ()
 

Detailed Description

Representa os Certificados contidos nos smart cards. Essa classe contém as informações relativas a um certificado lido de um smart card.

Constructor & Destructor Documentation

◆ SmartcardCertificate()

SmartcardCertificate::SmartcardCertificate ( std::string &  id,
std::string &  label,
std::string &  serial,
X509 *  cert 
)

Construtor para uso interno, uma vez que os certificados são lidos de smart cards.

Parameters
ido identificador do certificado no smart card.
labelo rótulo dado ao certificado.
serialo serial do certificado.
certponteiro para a estrutura OpenSSL que representa um certificado X.509

◆ ~SmartcardCertificate()

SmartcardCertificate::~SmartcardCertificate ( )
virtual

Destrutor padrão, limpa a estrutura interna OpenSSL.

Member Function Documentation

◆ getCertificate()

Certificate * SmartcardCertificate::getCertificate ( )

Retorna o certificado X.509 presente no smart card.

Returns
ponteiro para o certificado X.509

◆ getId()

std::string SmartcardCertificate::getId ( )

Retorna o identificador do certificado.

Returns
o identificador do certificado no smart card.

◆ getLabel()

std::string SmartcardCertificate::getLabel ( )

Retorna o rótulo do certificado.

Returns
o rótulo do certificado no smart card.

◆ getSerial()

std::string SmartcardCertificate::getSerial ( )

Retorna o serial do certificado.

Returns
o serial do certificado.

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