QCA::CertBase

QCA::CertBase Class Referenceabstract

#include <QtCrypto>

Inheritance diagram for QCA::CertBase:

Public Member Functions

 CertBase (Provider *p, const QString &type)
 
virtual ConvertResult fromDER (const QByteArray &a)=0
 
virtual ConvertResult fromPEM (const QString &s)=0
 
virtual QByteArray toDER () const =0
 
virtual QString toPEM () const =0
 

Additional Inherited Members

- Protected Member Functions inherited from QCA::BasicContext
 BasicContext (Provider *parent, const QString &type)
 
 BasicContext (const BasicContext &from)
 

Detailed Description

X.509 certificate and certificate request provider base.

Note
This class is part of the provider plugin interface and should not be used directly by applications. You probably want Certificate, CertificateRequest, or CRL instead.

Definition at line 1061 of file qcaprovider.h.

Constructor & Destructor Documentation

QCA::CertBase::CertBase ( Provider p,
const QString type 
)
inline

Standard constructor.

Parameters
pthe provider associated with this context
typethe type of certificate-like object provided by this context

Definition at line 1071 of file qcaprovider.h.

Member Function Documentation

virtual ConvertResult QCA::CertBase::fromDER ( const QByteArray a)
pure virtual

Read DER-formatted input and convert it into this object.

Returns QCA::ConvertGood if successful, otherwise some error value.

Parameters
athe input data
virtual ConvertResult QCA::CertBase::fromPEM ( const QString s)
pure virtual

Read PEM-formatted input and convert it into this object.

Returns QCA::ConvertGood if successful, otherwise some error value.

Parameters
sthe input data
virtual QByteArray QCA::CertBase::toDER ( ) const
pure virtual

Convert this object to DER format, and return the value.

Returns an empty array on error.

virtual QString QCA::CertBase::toPEM ( ) const
pure virtual

Convert this object to PEM format, and return the value.

Returns an empty string on error.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 19 2021 23:06:57 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.