• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/kssl
 

tdeio/kssl

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

#include <ksslpkcs7.h>

Public Member Functions

virtual ~KSSLPKCS7 ()
 
TQString name ()
 
TQString toString ()
 
void setCert (PKCS7 *c)
 
KSSLCertificate * getCertificate ()
 
KSSLCertChain * getChain ()
 
bool toFile (TQString filename)
 
KSSLCertificate::KSSLValidation validate ()
 
KSSLCertificate::KSSLValidation revalidate ()
 
bool isValid ()
 

Static Public Member Functions

static KSSLPKCS7 * fromString (TQString base64)
 
static KSSLPKCS7 * loadCertFile (TQString filename)
 

Friends

class KSSL
 

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 60 of file ksslpkcs7.h.

Constructor & Destructor Documentation

◆ ~KSSLPKCS7()

KSSLPKCS7::~KSSLPKCS7 ( )
virtual

Destroy this PKCS#7 certificate.

Definition at line 46 of file ksslpkcs7.cpp.

◆ KSSLPKCS7()

KSSLPKCS7::KSSLPKCS7 ( )
protected

Definition at line 38 of file ksslpkcs7.cpp.

Member Function Documentation

◆ fromString()

KSSLPKCS7 * KSSLPKCS7::fromString ( TQString  base64)
static

Create a KSSLPKCS7 object from a Base64 in a TQString.

Parameters
base64the base64 representation of the certificate
Returns
a PKCS#7 object, or NULL on failure

Definition at line 54 of file ksslpkcs7.cpp.

◆ getCertificate()

KSSLCertificate * KSSLPKCS7::getCertificate ( )

Get the bottom level X.509 certificate.

Returns
the certificate, or NULL on failure
See also
KSSLCertificate

Definition at line 106 of file ksslpkcs7.cpp.

◆ getChain()

KSSLCertChain * KSSLPKCS7::getChain ( )

Get the certificate chain.

Returns
the certificate chain
See also
KSSLCertChain

Definition at line 111 of file ksslpkcs7.cpp.

◆ isValid()

bool KSSLPKCS7::isValid ( )

Return true if the chain is valid.

Definition at line 179 of file ksslpkcs7.cpp.

◆ loadCertFile()

KSSLPKCS7 * KSSLPKCS7::loadCertFile ( TQString  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 72 of file ksslpkcs7.cpp.

◆ name()

TQString KSSLPKCS7::name ( )

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 184 of file ksslpkcs7.cpp.

◆ revalidate()

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 172 of file ksslpkcs7.cpp.

◆ setCert()

void KSSLPKCS7::setCert ( PKCS7 *  c)

Raw set the PKCS7 object.

Parameters
cthe PKCS7 object

Definition at line 96 of file ksslpkcs7.cpp.

◆ toFile()

bool KSSLPKCS7::toFile ( TQString  filename)

Write the PKCS#7 to a file in raw mode.

Parameters
filenamethe filename to write
Returns
true on success

Definition at line 139 of file ksslpkcs7.cpp.

◆ toString()

TQString KSSLPKCS7::toString ( )

Convert to a Base64 string.

Returns
the PKCS#7 object in base64 form

Definition at line 116 of file ksslpkcs7.cpp.

◆ validate()

KSSLCertificate::KSSLValidation KSSLPKCS7::validate ( )

Check the chain to make sure it's valid.

Returns
the result of the validation procedure

Definition at line 162 of file ksslpkcs7.cpp.

Friends And Related Function Documentation

◆ KSSL

friend class KSSL
friend

Definition at line 61 of file ksslpkcs7.h.


The documentation for this class was generated from the following files:
  • ksslpkcs7.h
  • ksslpkcs7.cpp

tdeio/kssl

Skip menu "tdeio/kssl"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeio/kssl

Skip menu "tdeio/kssl"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/kssl by doxygen 1.9.4
This website is maintained by Timothy Pearson.