• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

KSSLPKCS7 Class Reference

#include <ksslpkcs7.h>

List of all members.


Detailed Description

KDE PKCS#7 Certificate.

This class represents a PKCS#7 certificate

Author:
George Staikos <staikos@kde.org>
See also:
KSSL KDE PKCS#7 Certificate

Definition at line 55 of file ksslpkcs7.h.


Public Member Functions

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
virtual ~KSSLPKCS7 ()

Static Public Member Functions

static KSSLPKCS7 * fromString (const QString &base64)
static KSSLPKCS7 * loadCertFile (const QString &filename)

Protected Member Functions

 KSSLPKCS7 ()

Constructor & Destructor Documentation

KSSLPKCS7::~KSSLPKCS7 (  )  [virtual]

Destroy this PKCS#7 certificate.

Definition at line 55 of file ksslpkcs7.cpp.

KSSLPKCS7::KSSLPKCS7 (  )  [protected]

Definition at line 47 of file ksslpkcs7.cpp.


Member Function Documentation

KSSLPKCS7 * KSSLPKCS7::fromString ( const QString &  base64  )  [static]

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.

KSSLPKCS7 * KSSLPKCS7::loadCertFile ( const QString &  filename  )  [static]

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.

bool KSSLPKCS7::toFile ( const QString &  filename  ) 

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:
  • ksslpkcs7.h
  • ksslpkcs7.cpp

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal