KIO
#include <ksslpkcs7.h>
Public Member Functions | |
virtual | ~KSSLPKCS7 () |
KSSLCertificate * | getCertificate () |
KSSLCertChain * | getChain () |
bool | isValid () const |
QString | name () const |
KSSLCertificate::KSSLValidation | revalidate () |
void | setCert (PKCS7 *c) |
bool | toFile (const QString &filename) |
QString | toString () const |
KSSLCertificate::KSSLValidation | validate () const |
Static Public Member Functions | |
static KSSLPKCS7 * | fromString (const QString &base64) |
static KSSLPKCS7 * | loadCertFile (const QString &filename) |
Protected Member Functions | |
KSSLPKCS7 () | |
Detailed Description
KDE PKCS#7 Certificate.
This class represents a PKCS#7 certificate
Definition at line 55 of file ksslpkcs7.h.
Constructor & Destructor Documentation
|
virtual |
Destroy this PKCS#7 certificate.
Definition at line 55 of file ksslpkcs7.cpp.
|
protected |
Definition at line 47 of file ksslpkcs7.cpp.
Member Function Documentation
Create a KSSLPKCS7 object from a Base64 in a QString.
- Parameters
-
base64 the base64 representation of the certificate
- Returns
- a PKCS#7 object, or NULL on failure
Definition at line 63 of file ksslpkcs7.cpp.
KSSLCertificate * KSSLPKCS7::getCertificate | ( | ) |
Get the bottom level X.509 certificate.
- Returns
- the certificate, or NULL on failure
- See also
- KSSLCertificate
Definition at line 114 of file ksslpkcs7.cpp.
KSSLCertChain * KSSLPKCS7::getChain | ( | ) |
Get the certificate chain.
- Returns
- the certificate chain
- See also
- KSSLCertChain
Definition at line 119 of file ksslpkcs7.cpp.
bool KSSLPKCS7::isValid | ( | ) | const |
Return true if the chain is valid.
Definition at line 184 of file ksslpkcs7.cpp.
Create a KSSLPKCS7 object by reading a PKCS#7 file.
- Parameters
-
filename the filename to read the certificate from
- Returns
- a PKCS#7 object, or NULL on failure
Definition at line 80 of file ksslpkcs7.cpp.
QString KSSLPKCS7::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 189 of file ksslpkcs7.cpp.
KSSLCertificate::KSSLValidation KSSLPKCS7::revalidate | ( | ) |
Check the chain to make sure it's valid.
Ignore any cached validation result.
- Returns
- the result of the validation
- See also
- KSSLCertificate
Definition at line 177 of file ksslpkcs7.cpp.
void KSSLPKCS7::setCert | ( | PKCS7 * | c | ) |
Raw set the PKCS7 object.
- Parameters
-
c the PKCS7 object
Definition at line 104 of file ksslpkcs7.cpp.
Write the PKCS#7 to a file in raw mode.
- Parameters
-
filename the filename to write
- Returns
- true on success
Definition at line 144 of file ksslpkcs7.cpp.
QString KSSLPKCS7::toString | ( | ) | const |
Convert to a Base64 string.
- Returns
- the PKCS#7 object in base64 form
Definition at line 124 of file ksslpkcs7.cpp.
KSSLCertificate::KSSLValidation KSSLPKCS7::validate | ( | ) | const |
Check the chain to make sure it's valid.
- Returns
- the result of the validation procedure
Definition at line 167 of file ksslpkcs7.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.