|
ImagingTools Core SDK
|
Interface for applying SSL-related settings to an SSL configuration. More...
#include <ISslConfigurationApplier.h>
Inherits istd::IPolymorphic.
Inherited by imtcom::CSslConfigurationAdapterComp [virtual].
Public Member Functions | |
| virtual bool | LoadLocalCertificateFromFile (const QString &path, QSsl::EncodingFormat format=QSsl::Pem) const =0 |
| Loads a local SSL certificate from the specified file and applies it to the underlying SSL configuration. | |
| virtual bool | LoadPrivateKeyFromFile (const QString &path, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format=QSsl::Pem, const QByteArray &passPhrase={}) const =0 |
| Loads a private key from the specified file and applies it to the underlying SSL configuration. | |
| virtual bool | LoadCaCertificatesFromFile (const QString &path, QSsl::EncodingFormat format=QSsl::Pem) const =0 |
| Loads one or more Certificate Authority (CA) certificates from the specified file and applies them to the underlying SSL configuration. | |
| virtual bool | SetPeerVerifyMode (QSslSocket::PeerVerifyMode mode) const =0 |
| Sets the peer verification mode for the underlying SSL configuration. | |
| virtual bool | SetSslProtocol (QSsl::SslProtocol protocol) const =0 |
| Sets the SSL/TLS protocol version for the underlying SSL configuration. | |
Interface for applying SSL-related settings to an SSL configuration.
The ISslConfigurationApplier interface defines a write-only contract for applying SSL-related parameters to an existing SSL configuration.
Implementations of this interface translate high-level SSL settings (such as certificates, private keys, CA chains, protocols, and peer verification modes) into a concrete SSL configuration representation used by networking components.
This interface does not own or expose a \l QSslConfiguration instance. Instead, it applies changes to an underlying configuration managed elsewhere (for example, by an ISslConfigurationManager or a similar component).
Typical use cases include configuring SSL settings via configuration files, command-line parameters, or UI-driven setup flows.
Definition at line 41 of file ISslConfigurationApplier.h.
|
pure virtual |
Loads one or more Certificate Authority (CA) certificates from the specified file and applies them to the underlying SSL configuration.
The file may contain multiple CA certificates. All successfully parsed certificates are applied and used for peer verification.
| path | Path to the CA certificate file. |
| format | Encoding format of the certificate data. |
true if at least one CA certificate was successfully applied; otherwise returns false.
|
pure virtual |
Loads a local SSL certificate from the specified file and applies it to the underlying SSL configuration.
The certificate file may be encoded in PEM or DER format. If the file contains multiple certificates, the first one is used as the local certificate.
| path | Path to the certificate file. |
| format | Encoding format of the certificate data. |
true if the certificate was successfully applied; otherwise returns false.
|
pure virtual |
Loads a private key from the specified file and applies it to the underlying SSL configuration.
The private key may be encrypted. In this case, the provided passphrase is used to decrypt the key.
| path | Path to the private key file. |
| algorithm | Algorithm used by the private key (for example, RSA or EC). |
| format | Encoding format of the key data. |
| passPhrase | Passphrase used to decrypt the private key. |
true if the private key was successfully applied; otherwise returns false.
|
pure virtual |
Sets the peer verification mode for the underlying SSL configuration.
This setting controls how peer certificates are verified during the SSL/TLS handshake.
| mode | Peer verification mode to apply. |
true if the verification mode was successfully applied; otherwise returns false.
|
pure virtual |
Sets the SSL/TLS protocol version for the underlying SSL configuration.
This setting determines which SSL/TLS protocol versions are allowed during connection establishment.
| protocol | SSL/TLS protocol to apply. |
true if the protocol was successfully applied; otherwise returns false.