libcryptosec
|
#include <Certificate.h>
Public Member Functions | |
Certificate (X509 *cert) | |
Certificate (std::string pemEncoded) throw (EncodeException) | |
Certificate (ByteArray &derEncoded) throw (EncodeException) | |
Certificate (const Certificate &cert) | |
virtual | ~Certificate () |
std::string | getPemEncoded () const throw (EncodeException) |
ByteArray | getDerEncoded () const throw (EncodeException) |
std::string | getXmlEncoded () |
std::string | getXmlEncoded (std::string tab) |
virtual std::string | toXml (std::string tab="") |
long | getSerialNumber () throw (CertificationException) |
BigInteger | getSerialNumberBigInt () throw (CertificationException) |
MessageDigest::Algorithm | getMessageDigestAlgorithm () throw (MessageDigestException) |
PublicKey * | getPublicKey () throw (CertificationException, AsymmetricKeyException) |
ByteArray | getPublicKeyInfo () throw (CertificationException) |
long | getVersion () throw (CertificationException) |
DateTime | getNotBefore () |
DateTime | getNotAfter () |
RDNSequence | getIssuer () |
RDNSequence | getSubject () |
std::vector< Extension * > | getExtension (Extension::Name extensionName) |
std::vector< Extension * > | getExtensions () |
std::vector< Extension * > | getUnknownExtensions () |
ByteArray | getFingerPrint (MessageDigest::Algorithm algorithm) const throw (CertificationException, EncodeException, MessageDigestException) |
bool | verify (PublicKey &publicKey) |
X509 * | getX509 () const |
CertificateRequest | getNewCertificateRequest (PrivateKey &privateKey, MessageDigest::Algorithm algorithm) throw (CertificationException) |
Certificate & | operator= (const Certificate &value) |
bool | operator== (const Certificate &value) |
bool | operator!= (const Certificate &value) |
Protected Attributes | |
X509 * | cert |
Certificate::Certificate | ( | X509 * | cert | ) |
Certificate::Certificate | ( | std::string | pemEncoded | ) | |
throw | ( | EncodeException | |||
) |
Certificate::Certificate | ( | ByteArray & | derEncoded | ) | |
throw | ( | EncodeException | |||
) |
Certificate::Certificate | ( | const Certificate & | cert | ) |
|
virtual |
ByteArray Certificate::getDerEncoded | ( | ) | const | |
throw | ( | EncodeException | ||
) |
std::vector< Extension * > Certificate::getExtension | ( | Extension::Name | extensionName | ) |
std::vector< Extension * > Certificate::getExtensions | ( | ) |
ByteArray Certificate::getFingerPrint | ( | MessageDigest::Algorithm | algorithm | ) | const |
throw | ( | CertificationException, | |||
EncodeException, | |||||
MessageDigestException | |||||
) |
RDNSequence Certificate::getIssuer | ( | ) |
MessageDigest::Algorithm Certificate::getMessageDigestAlgorithm | ( | ) | ||
throw | ( | MessageDigestException | ||
) |
CertificateRequest Certificate::getNewCertificateRequest | ( | PrivateKey & | privateKey, |
MessageDigest::Algorithm | algorithm | ||
) | |||
throw | ( | CertificationException | |
) |
create a new certificate request using the data from this certificate
privateKey | certificate request signing key |
algorithm | message digest algorithm |
CertificationException | error on conversion of x509 to x509 req |
DateTime Certificate::getNotAfter | ( | ) |
DateTime Certificate::getNotBefore | ( | ) |
std::string Certificate::getPemEncoded | ( | ) | const | |
throw | ( | EncodeException | ||
) |
PublicKey * Certificate::getPublicKey | ( | ) | ||
throw | ( | CertificationException, | ||
AsymmetricKeyException | ||||
) |
ByteArray Certificate::getPublicKeyInfo | ( | ) | ||
throw | ( | CertificationException | ||
) |
long int Certificate::getSerialNumber | ( | ) | ||
throw | ( | CertificationException | ||
) |
BigInteger Certificate::getSerialNumberBigInt | ( | ) | ||
throw | ( | CertificationException | ||
) |
RDNSequence Certificate::getSubject | ( | ) |
std::vector< Extension * > Certificate::getUnknownExtensions | ( | ) |
long Certificate::getVersion | ( | ) | ||
throw | ( | CertificationException | ||
) |
X509 * Certificate::getX509 | ( | ) | const |
std::string Certificate::getXmlEncoded | ( | ) |
std::string Certificate::getXmlEncoded | ( | std::string | tab | ) |
bool Certificate::operator!= | ( | const Certificate & | value | ) |
Certificate & Certificate::operator= | ( | const Certificate & | value | ) |
bool Certificate::operator== | ( | const Certificate & | value | ) |
|
virtual |
bool Certificate::verify | ( | PublicKey & | publicKey | ) |
|
protected |