QtBase  v6.3.1
Public Types | Public Member Functions | List of all members
QTlsPrivate::TlsKey Class Referenceabstract

#include <qtlsbackend_p.h>

Inheritance diagram for QTlsPrivate::TlsKey:
Inheritance graph
[legend]

Public Types

using KeyType = QSsl::KeyType
 
using KeyAlgorithm = QSsl::KeyAlgorithm
 

Public Member Functions

virtual ~TlsKey ()
 
virtual void decodeDer (KeyType type, KeyAlgorithm algorithm, const QByteArray &der, const QByteArray &passPhrase, bool deepClear)=0
 
virtual void decodePem (KeyType type, KeyAlgorithm algorithm, const QByteArray &pem, const QByteArray &passPhrase, bool deepClear)=0
 
virtual QByteArray toPem (const QByteArray &passPhrase) const =0
 
virtual QByteArray derFromPem (const QByteArray &pem, QMap< QByteArray, QByteArray > *headers) const =0
 
virtual QByteArray pemFromDer (const QByteArray &der, const QMap< QByteArray, QByteArray > &headers) const =0
 
virtual void fromHandle (Qt::HANDLE handle, KeyType type)=0
 
virtual Qt::HANDLE handle () const =0
 
virtual bool isNull () const =0
 
virtual KeyType type () const =0
 
virtual KeyAlgorithm algorithm () const =0
 
virtual int length () const =0
 
virtual void clear (bool deepClear)=0
 
virtual bool isPkcs8 () const =0
 
virtual QByteArray decrypt (Cipher cipher, const QByteArray &data, const QByteArray &passPhrase, const QByteArray &iv) const =0
 
virtual QByteArray encrypt (Cipher cipher, const QByteArray &data, const QByteArray &key, const QByteArray &iv) const =0
 
QByteArray pemHeader () const
 
QByteArray pemFooter () const
 

Detailed Description

Definition at line 97 of file qtlsbackend_p.h.

Member Typedef Documentation

◆ KeyAlgorithm

Definition at line 102 of file qtlsbackend_p.h.

◆ KeyType

Definition at line 101 of file qtlsbackend_p.h.

Constructor & Destructor Documentation

◆ ~TlsKey()

QTlsPrivate::TlsKey::~TlsKey ( )
virtualdefault

Member Function Documentation

◆ algorithm()

QSsl::KeyAlgorithm QTlsPrivate::TlsKey::algorithm ( ) const
pure virtual

Implemented in QTlsPrivate::TlsKeyBase.

Here is the caller graph for this function:

◆ clear()

void QTlsPrivate::TlsKey::clear ( bool  deepClear)
pure virtual

◆ decodeDer()

void QTlsPrivate::TlsKey::decodeDer ( KeyType  type,
KeyAlgorithm  algorithm,
const QByteArray der,
const QByteArray passPhrase,
bool  deepClear 
)
pure virtual

◆ decodePem()

void QTlsPrivate::TlsKey::decodePem ( KeyType  type,
KeyAlgorithm  algorithm,
const QByteArray pem,
const QByteArray passPhrase,
bool  deepClear 
)
pure virtual

◆ decrypt()

QByteArray QTlsPrivate::TlsKey::decrypt ( Cipher  cipher,
const QByteArray data,
const QByteArray passPhrase,
const QByteArray iv 
) const
pure virtual

Implemented in QTlsPrivate::TlsKeySecureTransport, QTlsPrivate::TlsKeySchannel, and QTlsPrivate::TlsKeyOpenSSL.

Here is the caller graph for this function:

◆ derFromPem()

QByteArray QTlsPrivate::TlsKey::derFromPem ( const QByteArray pem,
QMap< QByteArray, QByteArray > *  headers 
) const
pure virtual

◆ encrypt()

QByteArray QTlsPrivate::TlsKey::encrypt ( Cipher  cipher,
const QByteArray data,
const QByteArray key,
const QByteArray iv 
) const
pure virtual

Implemented in QTlsPrivate::TlsKeySecureTransport, QTlsPrivate::TlsKeySchannel, and QTlsPrivate::TlsKeyOpenSSL.

Here is the caller graph for this function:

◆ fromHandle()

void QTlsPrivate::TlsKey::fromHandle ( Qt::HANDLE  handle,
KeyType  type 
)
pure virtual

◆ handle()

QTlsPrivate::TlsKey::handle ( ) const
pure virtual

◆ isNull()

bool QTlsPrivate::TlsKey::isNull ( ) const
pure virtual

Implemented in QTlsPrivate::TlsKeyBase.

◆ isPkcs8()

bool QTlsPrivate::TlsKey::isPkcs8 ( ) const
pure virtual

◆ length()

int QTlsPrivate::TlsKey::length ( ) const
pure virtual

◆ pemFooter()

QByteArray QTlsPrivate::TlsKey::pemFooter ( ) const

Definition at line 1428 of file qtlsbackend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pemFromDer()

QByteArray QTlsPrivate::TlsKey::pemFromDer ( const QByteArray der,
const QMap< QByteArray, QByteArray > &  headers 
) const
pure virtual

Implemented in QTlsPrivate::TlsKeyBase.

◆ pemHeader()

QByteArray QTlsPrivate::TlsKey::pemHeader ( ) const

Definition at line 1406 of file qtlsbackend.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toPem()

QByteArray QTlsPrivate::TlsKey::toPem ( const QByteArray passPhrase) const
pure virtual

◆ type()

QSsl::KeyType QTlsPrivate::TlsKey::type ( ) const
pure virtual

Implemented in QTlsPrivate::TlsKeyBase.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: