libcryptosec
|
#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 () |
Certificate * | getCertificate () |
Representa os Certificados contidos nos smart cards. Essa classe contém as informações relativas a um certificado lido de um smart card.
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.
id | o identificador do certificado no smart card. |
label | o rótulo dado ao certificado. |
serial | o serial do certificado. |
cert | ponteiro para a estrutura OpenSSL que representa um certificado X.509 |
|
virtual |
Destrutor padrão, limpa a estrutura interna OpenSSL.
Certificate * SmartcardCertificate::getCertificate | ( | ) |
Retorna o certificado X.509 presente no smart card.
std::string SmartcardCertificate::getId | ( | ) |
Retorna o identificador do certificado.
std::string SmartcardCertificate::getLabel | ( | ) |
Retorna o rótulo do certificado.
std::string SmartcardCertificate::getSerial | ( | ) |
Retorna o serial do certificado.