KSSLCertificate Class Reference
KDE X.509 CertificateKDE X.509 Certificate. More...
#include <ksslcertificate.h>
Detailed Description
KDE X.509 CertificateKDE X.509 Certificate.This class represents an X.509 (SSL) certificate. Note: this object is VERY HEAVY TO COPY. Please try to use reference or pointer whenever possible
- Author:
- George Staikos <staikos@kde.org>
- See also:
- KSSL
Definition at line 75 of file ksslcertificate.h.
Member Enumeration Documentation
|
A CA certificate can be validated as Irrelevant when it was not used to sign any other relevant certificate.
Definition at line 113 of file ksslcertificate.h. |
Constructor & Destructor Documentation
|
Destroy this X.509 certificate.
Definition at line 118 of file ksslcertificate.cc. |
|
Copy constructor. Beware, this is very expensive.
Definition at line 103 of file ksslcertificate.cc. References KStandardDirs::addResourceType(), KGlobal::dirs(), getCert(), KStandardDirs::kde_default(), KSSLCertChain::rawChain(), setCert(), and setChain(). |
Member Function Documentation
|
Create an X.509 certificate from a base64 encoded string.
Definition at line 144 of file ksslcertificate.cc. References KCodecs::base64Decode(), QCString::copy(), QCString::length(), and setCert(). Referenced by Observer::messageBox(), and KSSLCertChain::setCertChain(). |
|
Create an X.509 certificate from the internal representation. This one duplicates the X509 object for itself.
Definition at line 132 of file ksslcertificate.cc. References setCert(). |
|
Convert this certificate to a string.
Definition at line 912 of file ksslcertificate.cc. References KCodecs::base64Encode(), and toDer(). Referenced by KSSLSigners::addCA(), and toPem(). |
|
Get the subject of the certificate (X.509 map).
Definition at line 166 of file ksslcertificate.cc. Referenced by KSSLPeerInfo::certMatchesAddress(), getKDEKey(), KSSLPKCS7::name(), KSSLPKCS12::name(), KSSLSigners::remove(), setCert(), KSSLInfoDlg::setup(), KSSLSigners::useForCode(), KSSLSigners::useForEmail(), and KSSLSigners::useForSSL(). |
|
Get the issuer of the certificate (X.509 map).
Definition at line 425 of file ksslcertificate.cc. Referenced by KSSLInfoDlg::setup(). |
|
Get the date that the certificate becomes valid on.
Definition at line 852 of file ksslcertificate.cc. |
|
Get the date that the certificate is valid until.
Definition at line 861 of file ksslcertificate.cc. Referenced by processError(). |
|
Get the date that the certificate becomes valid on.
Definition at line 870 of file ksslcertificate.cc. References QDateTime::currentDateTime(). |
|
Get the date that the certificate is valid until.
Definition at line 879 of file ksslcertificate.cc. References QDateTime::currentDateTime(). |
|
Convert the certificate to DER (ASN.1) format.
Definition at line 957 of file ksslcertificate.cc. References getCert(). Referenced by toString(). |
|
Convert the certificate to PEM (base64) format.
Definition at line 977 of file ksslcertificate.cc. References QString::append(), QString::insert(), QString::length(), QString::local8Bit(), QString::prepend(), and toString(). |
|
Convert the certificate to Netscape format.
Definition at line 1005 of file ksslcertificate.cc. References QFile::close(), KTempFile::close(), KTempFile::fstream(), getCert(), KTempFile::name(), QFile::open(), QFile::size(), and KTempFile::unlink(). |
|
Convert the certificate to OpenSSL plain text format.
Definition at line 1038 of file ksslcertificate.cc. References QFile::close(), KTempFile::close(), KTempFile::fstream(), getCert(), KTempFile::name(), QFile::open(), QFile::size(), and KTempFile::unlink(). |
|
Get the serial number of the certificate.
Definition at line 180 of file ksslcertificate.cc. |
|
Get the key type (RSA, DSA, etc).
Definition at line 305 of file ksslcertificate.cc. |
|
Get the public key.
Definition at line 331 of file ksslcertificate.cc. References QString::arg(). |
|
Get the MD5 digest of the certificate. Result is padded with : to separate bytes - it's a text version!
Definition at line 257 of file ksslcertificate.cc. References QString::append(). Referenced by getKDEKey(). |
|
Get the MD5 digest of the certificate.
Definition at line 282 of file ksslcertificate.cc. References QString::append(). |
|
Get the signature.
Definition at line 194 of file ksslcertificate.cc. References QString::append(). |
|
Check if this is a valid certificate. Will use cached data.
Definition at line 565 of file ksslcertificate.cc. |
|
Check if this is a valid certificate. Will use cached data.
|
|
The alternate subject name.
Definition at line 1085 of file ksslcertificate.cc. References QString::isEmpty(). Referenced by KSSLPeerInfo::certMatchesAddress(). |
|
Check if this is a valid certificate. Will use cached data.
Definition at line 590 of file ksslcertificate.cc. Referenced by KSSLInfoDlg::setup(), KSSLPKCS7::validate(), and KSSLPKCS12::validate(). |
|
Check if this is a valid certificate. Will use cached data.
|
|
Check if this is a valid certificate. Will use cached data.
|
|
Check if the certificate ca is a proper CA for this certificate.
|
|
Check if this is a valid certificate. Will NOT use cached data.
Definition at line 753 of file ksslcertificate.cc. Referenced by KSSLPKCS7::revalidate(), and KSSLPKCS12::revalidate(). |
|
Check if this is a valid certificate. Will NOT use cached data.
|
|
Get a reference to the certificate chain.
Definition at line 127 of file ksslcertificate.cc. Referenced by Observer::messageBox(), and KSSLInfoDlg::setup(). |
|
Obtain the localized message that corresponds to a validation result.
Definition at line 917 of file ksslcertificate.cc. |
|
Explicitly make a copy of this certificate.
Definition at line 898 of file ksslcertificate.cc. References getCert(), KSSLCertificate(), KSSLCertChain::rawChain(), setCert(), and setChain(). |
|
Re-set the certificate from a base64 string.
Definition at line 1060 of file ksslcertificate.cc. References KCodecs::base64Decode(), and QString::local8Bit(). Referenced by fromString(), fromX509(), KSSLCertChain::getChain(), KSSLCertificate(), KSSLPKCS12::parse(), and replicate(). |
|
Access the X.509v3 parameters.
Definition at line 1075 of file ksslcertificate.cc. Referenced by KSSL::setClientCertificate(). |
|
Check if this is a signer certificate.
Definition at line 1080 of file ksslcertificate.cc. |
|
FIXME: document.
Definition at line 222 of file ksslcertificate.cc. |
|
KDEKey is a concatenation "Subject (MD5)", mostly needed for SMIME. The result of getKDEKey might change and should not be used for persistant storage. Definition at line 239 of file ksslcertificate.cc. References getMD5DigestText(), and getSubject(). |
|
Aegypten semantics force us to search by MD5Digest only.
Definition at line 244 of file ksslcertificate.cc. References QString::at(), QString::findRev(), QString::length(), and QString::mid(). |
The documentation for this class was generated from the following files: