KIO
#include <ksslpkcs12.h>
Public Member Functions | |
virtual | ~KSSLPKCS12 () |
bool | changePassword (const QString &pold, const QString &pnew) |
KSSLCertificate * | getCertificate () |
EVP_PKEY * | getPrivateKey () |
bool | isValid () |
bool | isValid (KSSLCertificate::KSSLPurpose p) |
QString | name () const |
KSSLCertificate::KSSLValidation | revalidate () |
KSSLCertificate::KSSLValidation | revalidate (KSSLCertificate::KSSLPurpose p) |
void | setCert (PKCS12 *c) |
bool | toFile (const QString &filename) |
QString | toString () |
KSSLCertificate::KSSLValidation | validate () |
KSSLCertificate::KSSLValidation | validate (KSSLCertificate::KSSLPurpose p) |
Static Public Member Functions | |
static KSSLPKCS12 * | fromString (const QString &base64, const QString &password=QLatin1String("")) |
static KSSLPKCS12 * | loadCertFile (const QString &filename, const QString &password=QLatin1String("")) |
Protected Member Functions | |
KSSLPKCS12 () | |
bool | parse (const QString &pass) |
Detailed Description
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.
- See also
- KSSL, KSSLCertificate KDE PKCS#12 Certificate
Definition at line 63 of file ksslpkcs12.h.
Constructor & Destructor Documentation
|
virtual |
Destroy this PKCS#12 certificate.
Definition at line 58 of file ksslpkcs12.cpp.
|
protected |
Definition at line 48 of file ksslpkcs12.cpp.
Member Function Documentation
Change the password of the PKCS#12 in memory.
- Parameters
-
pold the old password pnew the new password
- Returns
- true on success
Definition at line 132 of file ksslpkcs12.cpp.
|
static |
Create a KSSLPKCS12 object from a Base64 in a QString.
- Parameters
-
base64 the base64 encoded certificate password a password for the certificate if encrypted
- Returns
- the PKCS#12 object, or NULL on failure.
Definition at line 75 of file ksslpkcs12.cpp.
KSSLCertificate * KSSLPKCS12::getCertificate | ( | ) |
Get the X.509 certificate.
- Returns
- the X.509 certificate for the PKCS#12 object, or NULL
Definition at line 190 of file ksslpkcs12.cpp.
EVP_PKEY * KSSLPKCS12::getPrivateKey | ( | ) |
Get the private key.
- Returns
- the internal OpenSSL private key format
Definition at line 185 of file ksslpkcs12.cpp.
bool KSSLPKCS12::isValid | ( | ) |
Check if the X.509 and private key are valid.
- Returns
- true if valid
Definition at line 268 of file ksslpkcs12.cpp.
bool KSSLPKCS12::isValid | ( | KSSLCertificate::KSSLPurpose | p | ) |
Check if the X.509 and private key are valid.
- Parameters
-
p the purpose to validate for
- Returns
- true if valid
Definition at line 273 of file ksslpkcs12.cpp.
|
static |
Create a KSSLPKCS12 object by reading a PKCS#12 file.
- Parameters
-
filename the filename of the certificate password a password for the certificate if encrypted
- Returns
- the PKCS#12 object, or NULL on failure.
Definition at line 92 of file ksslpkcs12.cpp.
QString KSSLPKCS12::name | ( | ) | const |
The name of this certificate.
This can be used to refer to the certificate instead of passing the object itself.
- Returns
- the name of the certificate
Definition at line 278 of file ksslpkcs12.cpp.
Definition at line 143 of file ksslpkcs12.cpp.
KSSLCertificate::KSSLValidation KSSLPKCS12::revalidate | ( | ) |
Check the X.509 and private key to make sure they're valid.
Ignore any cached validation result.
- Returns
- the result of the validation
- See also
- KSSLCertificate
Definition at line 258 of file ksslpkcs12.cpp.
KSSLCertificate::KSSLValidation KSSLPKCS12::revalidate | ( | KSSLCertificate::KSSLPurpose | p | ) |
Check the X.509 and private key to make sure they're valid.
Ignore any cached validation result.
- Parameters
-
p the purpose to validate for
- Returns
- the result of the validation
- See also
- KSSLCertificate
Definition at line 263 of file ksslpkcs12.cpp.
void KSSLPKCS12::setCert | ( | PKCS12 * | c | ) |
Raw set the PKCS12 object.
- Parameters
-
c the openssl PKCS12 object
Definition at line 125 of file ksslpkcs12.cpp.
Write the PKCS#12 to a file in raw mode.
- Parameters
-
filename the file to write to
- Returns
- true on success
Definition at line 216 of file ksslpkcs12.cpp.
QString KSSLPKCS12::toString | ( | ) |
Convert to a Base64 string.
- Returns
- the certificate in base64 form
Definition at line 195 of file ksslpkcs12.cpp.
KSSLCertificate::KSSLValidation KSSLPKCS12::validate | ( | ) |
Check the X.509 and private key to make sure they're valid.
- Returns
- the result of the validation
- See also
- KSSLCertificate
Definition at line 239 of file ksslpkcs12.cpp.
KSSLCertificate::KSSLValidation KSSLPKCS12::validate | ( | KSSLCertificate::KSSLPurpose | p | ) |
Check the X.509 and private key to make sure they're valid.
- Parameters
-
p the purpose to validate for
- Returns
- the result of the validation
- See also
- KSSLCertificate
Definition at line 244 of file ksslpkcs12.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.