XX CMake Package
Loading...
Searching...
No Matches
XX::SecureNetwork::Client Class Reference

secure network client More...

#include <XXSecureNetworkClient.h>

Inheritance diagram for XX::SecureNetwork::Client:
XX::SecureNetwork::Socket

Detailed Description

secure network client

Public Member Functions

 Client (QObject *parent, bool directAccess=false)
void connectToHost (const QString &hostName, const quint16 &port)
void disconnectFromHost ()
bool setEncryptionWithPasswordFile (const QString &p12FileName, const QString &passwordFileName)
bool setEncryption (const QString &p12FileName, const QByteArray &password)
void setConfiguration (const QSslConfiguration &newSslConfiguration)
const QSslConfiguration & getConfiguration () const
Public Member Functions inherited from XX::SecureNetwork::Socket
void sendData (const QByteArray &data)
QSslCertificate getPeerCertificate () const
 operator QSslSocket * () const

Static Public Member Functions

static QByteArray readPassword (const QString &passwordFileName)

Additional Inherited Members

Public Types inherited from XX::SecureNetwork::Socket
using Pointer = QPointer<Socket>
Signals inherited from XX::SecureNetwork::Socket
void signalDataReceived (Socket *me, const QByteArray &data)
void signalConnected (Socket *me)
void signalDisconnected (Socket *me)
void signalEncrypted (Socket *me)
Static Public Attributes inherited from XX::SecureNetwork::Socket
static bool verbose
Protected Member Functions inherited from XX::SecureNetwork::Socket
 Socket (QObject *parent, QSslSocket *externalSocket=nullptr, bool directAccess=false)
virtual ~Socket ()
Protected Attributes inherited from XX::SecureNetwork::Socket
QPointer< QSslSocket > sslSocket
bool directAccess

Constructor & Destructor Documentation

◆ Client()

XX::SecureNetwork::Client::Client ( QObject * parent,
bool directAccess = false )

Member Function Documentation

◆ connectToHost()

void XX::SecureNetwork::Client::connectToHost ( const QString & hostName,
const quint16 & port )

◆ disconnectFromHost()

void XX::SecureNetwork::Client::disconnectFromHost ( )

◆ getConfiguration()

const QSslConfiguration & XX::SecureNetwork::Client::getConfiguration ( ) const

◆ readPassword()

QByteArray XX::SecureNetwork::Client::readPassword ( const QString & passwordFileName)
static

◆ setConfiguration()

void XX::SecureNetwork::Client::setConfiguration ( const QSslConfiguration & newSslConfiguration)

◆ setEncryption()

bool XX::SecureNetwork::Client::setEncryption ( const QString & p12FileName,
const QByteArray & password )

◆ setEncryptionWithPasswordFile()

bool XX::SecureNetwork::Client::setEncryptionWithPasswordFile ( const QString & p12FileName,
const QString & passwordFileName )

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