Contents

CertificateRequest Class Reference

The CertificateRequest class provides a convenient interface for an X.509 certificate signing request. More...

    #include <CertificateRequest>

Public Functions

CertificateRequest ()
CertificateRequest ( const CertificateRequest & other )
CertificateRequest ( QIODevice * io, QSsl::EncodingFormat format = QSsl::Pem )
~CertificateRequest ()
int error () const
QString errorString () const
bool isNull () const
QList<QByteArray> nameEntryAttributes ()
QStringList nameEntryInfo ( Certificate::EntryType attribute )
QStringList nameEntryInfo ( const QByteArray & oid )
void swap ( CertificateRequest & other )
QByteArray toDer ()
QByteArray toPem ()
QString toText ()
int version () const
CertificateRequest & operator= ( const CertificateRequest & other )

Detailed Description

The CertificateRequest class provides a convenient interface for an X.509 certificate signing request.

Member Function Documentation

CertificateRequest::CertificateRequest ()

Create a null CertificateRequest.

CertificateRequest::CertificateRequest ( const CertificateRequest & other )

Create a CertificateRequest that is a copy of other.

CertificateRequest::CertificateRequest ( QIODevice * io, QSsl::EncodingFormat format = QSsl::Pem )

Load a CertificateRequest from the specified QIODevice using the specified format.

CertificateRequest::~CertificateRequest ()

Clean up.

int CertificateRequest::error () const

Returns the last error that occurred when using this object. The values used are those of gnutls. If there has not been an error then it is guaranteed to be 0.

QString CertificateRequest::errorString () const

Returns a string describing the last error that occurred when using this object.

bool CertificateRequest::isNull () const

Returns true if this CertificateRequest is null (uninitialised).

QList<QByteArray> CertificateRequest::nameEntryAttributes ()

Returns the list of attributes that are present in this requests distinguished name. The attributes are returned as OIDs.

QStringList CertificateRequest::nameEntryInfo ( Certificate::EntryType attribute )

Returns the list of entries for the attribute specified.

QStringList CertificateRequest::nameEntryInfo ( const QByteArray & oid )

Returns the list of entries for the attribute specified by the oid.

void CertificateRequest::swap ( CertificateRequest & other )

QByteArray CertificateRequest::toDer ()

Returns a QByteArray containing this request encoded as DER.

QByteArray CertificateRequest::toPem ()

Returns a QByteArray containing this request encoded as PEM.

QString CertificateRequest::toText ()

Returns a QString containing this request as a human readable string.

int CertificateRequest::version () const

Returns the version of the certificate signing request.

CertificateRequest & CertificateRequest::operator= ( const CertificateRequest & other )