KSSLPKCS12 Class Reference
KDE PKCS#12 Certificate KDE PKCS#12 Certificate. More...
#include <ksslpkcs12.h>
Collaboration diagram for KSSLPKCS12:

Public Member Functions | |
virtual | ~KSSLPKCS12 () |
QString | name () |
QString | toString () |
void | setCert (PKCS12 *c) |
bool | changePassword (QString pold, QString pnew) |
EVP_PKEY * | getPrivateKey () |
KSSLCertificate * | getCertificate () |
bool | toFile (QString filename) |
KSSLCertificate::KSSLValidation | validate () |
KSSLCertificate::KSSLValidation | validate (KSSLCertificate::KSSLPurpose p) |
KSSLCertificate::KSSLValidation | revalidate () |
KSSLCertificate::KSSLValidation | revalidate (KSSLCertificate::KSSLPurpose p) |
bool | isValid () |
bool | isValid (KSSLCertificate::KSSLPurpose p) |
Static Public Member Functions | |
KSSLPKCS12 * | fromString (QString base64, QString password="") |
KSSLPKCS12 * | loadCertFile (QString filename, QString password="") |
Protected Member Functions | |
bool | parse (QString pass) |
Detailed Description
KDE PKCS#12 Certificate KDE PKCS#12 Certificate.As of yet, this class is being defined. if you use it, let it be known that BC will break on you until this message is removed.
- Author:
- George Staikos <staikos@kde.org>
- See also:
- KSSL, KSSLCertificate
Definition at line 61 of file ksslpkcs12.h.
Constructor & Destructor Documentation
|
Destroy this PKCS#12 certificate.
Definition at line 58 of file ksslpkcs12.cc. References KOpenSSLProxy::EVP_PKEY_free(), KOpenSSLProxy::PKCS12_free(), and KOpenSSLProxy::X509_free(). |
Member Function Documentation
|
The name of this certificate. This can be used to refer to the certificate instead of passing the object itself.
Definition at line 279 of file ksslpkcs12.cc. References KSSLCertificate::getSubject(). |
|
Create a KSSLPKCS12 object from a Base64 in a QString.
Definition at line 75 of file ksslpkcs12.cc. References KTempFile::close(), KTempFile::file(), fromString(), QString::isEmpty(), QString::latin1(), loadCertFile(), KTempFile::name(), and KTempFile::unlink(). Referenced by fromString(). |
|
Create a KSSLPKCS12 object by reading a PKCS#12 file.
Definition at line 93 of file ksslpkcs12.cc. References QFile::handle(), loadCertFile(), QFile::open(), parse(), and setCert(). Referenced by fromString(), and loadCertFile(). |
|
Convert to a Base64 string.
Definition at line 196 of file ksslpkcs12.cc. References KOpenSSLProxy::i2d_PKCS12(). |
|
Raw set the PKCS12 object.
Definition at line 126 of file ksslpkcs12.cc. References setCert(). Referenced by loadCertFile(), and setCert(). |
|
Change the password of the PKCS#12 in memory.
Definition at line 133 of file ksslpkcs12.cc. References changePassword(), QString::isNull(), QString::latin1(), and KOpenSSLProxy::PKCS12_newpass(). Referenced by changePassword(). |
|
Get the private key.
Definition at line 186 of file ksslpkcs12.cc. Referenced by KSSL::setClientCertificate(). |
|
Get the X.509 certificate.
Definition at line 191 of file ksslpkcs12.cc. Referenced by KSSL::setClientCertificate(). |
|
Write the PKCS#12 to a file in raw mode.
Definition at line 217 of file ksslpkcs12.cc. References QFile::handle(), KOpenSSLProxy::i2d_PKCS12_fp(), QString::latin1(), QFile::open(), and toFile(). Referenced by toFile(). |
|
Check the X.509 and private key to make sure they're valid.
Definition at line 240 of file ksslpkcs12.cc. Referenced by isValid(). |
|
Check the X.509 and private key to make sure they're valid.
Definition at line 245 of file ksslpkcs12.cc. References KSSLCertificate::getCert(), KSSLCertificate::validate(), and KOpenSSLProxy::X509_check_private_key(). |
|
Check the X.509 and private key to make sure they're valid. Ignore any cached validation result.
Definition at line 259 of file ksslpkcs12.cc. |
|
Check the X.509 and private key to make sure they're valid. Ignore any cached validation result.
Definition at line 264 of file ksslpkcs12.cc. References KSSLCertificate::revalidate(). |
|
Check if the X.509 and private key are valid.
Definition at line 269 of file ksslpkcs12.cc. |
|
Check if the X.509 and private key are valid.
Definition at line 274 of file ksslpkcs12.cc. References validate(). |
The documentation for this class was generated from the following files: