KSSLCertChain

KSSLCertChain Class Reference

#include <ksslcertchain.h>

Public Member Functions

 KSSLCertChain ()
 
 ~KSSLCertChain ()
 
int depth ()
 
QList< KSSLCertificate * > getChain () const
 
bool isValid ()
 
void * rawChain ()
 
KSSLCertChainreplicate ()
 
void setCertChain (const QStringList &chain)
 
void setChain (void *stack_of_x509)
 
void setChain (const QList< KSSLCertificate * > &chain)
 

Detailed Description

KDE Certificate Chain Representation Class.

This class provides a representation for an X.509 certificate chain.

Author
George Staikos staik[email protected][email protected][email protected]de.or[email protected]g
See also
KSSL, KSSLCertificate, KSSLPeerInfo KDE X.509 Certificate Chain

Definition at line 42 of file ksslcertchain.h.

Constructor & Destructor Documentation

KSSLCertChain::KSSLCertChain ( )

Construct a KSSLCertChain object.

Definition at line 59 of file ksslcertchain.cpp.

KSSLCertChain::~KSSLCertChain ( )

Destroy this KSSLCertChain object.

Definition at line 65 of file ksslcertchain.cpp.

Member Function Documentation

int KSSLCertChain::depth ( )

Determine the number of entries (depth) of the chain.

Returns
the number of entries in the certificate chain

Definition at line 98 of file ksslcertchain.cpp.

QList< KSSLCertificate * > KSSLCertChain::getChain ( ) const

Obtain a copy of the certificate chain.

The caller is responsible for deleting all certificates in the chain.

Returns
a deep copy of the certificate chain.
See also
KSSLCertificate

Definition at line 111 of file ksslcertchain.cpp.

bool KSSLCertChain::isValid ( )

Determine if this represents a valid certificate chain.

Returns
true if it is a valid certificate chain

Definition at line 84 of file ksslcertchain.cpp.

void * KSSLCertChain::rawChain ( )

Read the raw chain in OpenSSL format.

Definition at line 106 of file ksslcertchain.cpp.

KSSLCertChain * KSSLCertChain::replicate ( )

Do a deep copy of the certificate chain.

Returns
pointer to a new certificate chain object

This is an expensive operation, and you are responsible for deleting the returned object yourself.

Definition at line 89 of file ksslcertchain.cpp.

void KSSLCertChain::setCertChain ( const QStringList chain)

Set the certificate chain as a list of base64 encoded X.509 certificates.

Parameters
chainthe certificate chain

Definition at line 199 of file ksslcertchain.cpp.

void KSSLCertChain::setChain ( void *  stack_of_x509)

Set the raw chain from OpenSSL.

Definition at line 162 of file ksslcertchain.cpp.

void KSSLCertChain::setChain ( const QList< KSSLCertificate * > &  chain)

Set the certificate chain as a pointer list of KSSL certificates.

Parameters
chainthe certificate chain
See also
KSSLCertificate

Definition at line 134 of file ksslcertchain.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 22:56:41 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.