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

#include <Pkcs12.h>

Public Member Functions

 Pkcs12 (PKCS12 *p12)
 
virtual ~Pkcs12 ()
 
ByteArray getDerEncoded () const throw (EncodeException)
 
PrivateKeygetPrivKey (string password) throw (Pkcs12Exception)
 
CertificategetCertificate (string password) throw (Pkcs12Exception)
 
vector< Certificate * > getAdditionalCertificates (string password) throw (Pkcs12Exception)
 

Protected Member Functions

void parse (string password) throw (Pkcs12Exception)
 

Protected Attributes

PrivateKeyprivKey
 
Certificatecert
 
vector< Certificate * > ca
 
PKCS12 * pkcs12
 

Constructor & Destructor Documentation

◆ Pkcs12()

Pkcs12::Pkcs12 ( PKCS12 *  p12)

◆ ~Pkcs12()

Pkcs12::~Pkcs12 ( )
virtual

Member Function Documentation

◆ getAdditionalCertificates()

vector< Certificate * > Pkcs12::getAdditionalCertificates ( string  password)
throw (Pkcs12Exception
)

Retorna uma copia dos certificados adicionais encapsulados pelo objeto Pkcs12

Parameters
passwordpassphrase do pacote Pkcs12

◆ getCertificate()

Certificate * Pkcs12::getCertificate ( string  password)
throw (Pkcs12Exception
)

Retorna uma copia do certificado encapsulados pelo objeto Pkcs12

Parameters
passwordpassphrase do pacote Pkcs12

◆ getDerEncoded()

ByteArray Pkcs12::getDerEncoded ( ) const
throw (EncodeException
)
Returns
o conteudo em codificacao DER do pacote Pkcs12

◆ getPrivKey()

PrivateKey * Pkcs12::getPrivKey ( string  password)
throw (Pkcs12Exception
)

Retorna uma copia da chave privada encapsulada pelo objeto Pkcs12

Parameters
passwordpassphrase do pacote Pkcs12

◆ parse()

void Pkcs12::parse ( string  password)
throw (Pkcs12Exception
)
protected

Popula os objetos internos da classe: privKey, cert e ca.

Parameters
passwordpassphrase do pacote Pkcs12

Member Data Documentation

◆ ca

vector<Certificate*> Pkcs12::ca
protected

◆ cert

Certificate* Pkcs12::cert
protected

◆ pkcs12

PKCS12* Pkcs12::pkcs12
protected

◆ privKey

PrivateKey* Pkcs12::privKey
protected

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