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

KIO

Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
KSSLPKCS7 Class Reference

#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

Author
George Staikos staik.nosp@m.os@k.nosp@m.de.or.nosp@m.g
See also
KSSL KDE PKCS#7 Certificate

Definition at line 55 of file ksslpkcs7.h.

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
base64the 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
filenamethe 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
cthe 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
filenamethe 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal