QSslCipher Class

QSslCipher クラスは SSL 暗号を表します。詳細...

ヘッダ #include <QSslCipher>
CMake: find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
qmake: QT += network

注:このクラスの関数はすべてリエントラントです。

パブリック関数

QSslCipher()
QSslCipher(const QString &name)
QSslCipher(const QString &name, QSsl::SslProtocol protocol)
QSslCipher(const QSslCipher &other)
~QSslCipher()
QString authenticationMethod() const
QString encryptionMethod() const
bool isNull() const
QString keyExchangeMethod() const
QString name() const
QSsl::SslProtocol protocol() const
QString protocolString() const
int supportedBits() const
void swap(QSslCipher &other)
int usedBits() const
bool operator!=(const QSslCipher &other) const
QSslCipher &operator=(const QSslCipher &other)
bool operator==(const QSslCipher &other) const

詳細説明

QSslCipher は、1 つの暗号に関する情報を格納します。ソケットが使用できる暗号を設定するため、またはソケットの暗号をユーザに表示するために、QSslSocket と共に最も一般的に使用される。

QSslSocket およびQSslKeyも参照のこと

メンバ関数ドキュメント

QSslCipher::QSslCipher()

空の QSslCipher オブジェクトを構築します。

[explicit] QSslCipher::QSslCipher(const QString &name)

name によって決定された暗号の QSslCipher オブジェクトを構築する。コンストラクタはサポートされている暗号のみを受け付ける(つまり、name 、QSslSocket::supportedCiphers()によって返される暗号のリストにある暗号を識別する必要がある)。

構築後にisNull() を呼び出すことで、name がサポートされている暗号を正しく識別したかどうかを確認できます。

QSslCipher::QSslCipher(const QString &name, QSsl::SslProtocol protocol)

name およびprotocol によって決定された暗号の QSslCipher オブジェクトを構築する。コンストラクタは、サポートされている暗号のみを受け付ける(つまり、nameprotocol は、QSslSocket::supportedCiphers() によって返される暗号のリスト内の暗号を識別しなければならない)。

構築後にisNull() を呼び出すことで、nameprotocol がサポートされている暗号を正しく識別したかどうかを確認できます。

QSslCipher::QSslCipher(const QSslCipher &other)

other 暗号の同一コピーを構築する。

[noexcept] QSslCipher::~QSslCipher()

QSslCipher オブジェクトを破棄する。

QString QSslCipher::authenticationMethod() const

暗号の認証方法をQString として返す。

QString QSslCipher::encryptionMethod() const

暗号化方式をQString で返す。

bool QSslCipher::isNull() const

これがヌル暗号の場合はtrue を返し、そうでない場合はfalse を返す。

QString QSslCipher::keyExchangeMethod() const

暗号の鍵交換方式をQString として返す。

QString QSslCipher::name() const

暗号化方式名を返す。NULL 暗号化方式の場合は空のQString を返す。

isNull()も参照

QSsl::SslProtocol QSslCipher::protocol() const

QSslCipher がプロトコルを決定できない場合はQSsl::UnknownProtocol を返す (protocolString() に詳細情報があるかもしれない)。

protocolString()も参照

QString QSslCipher::protocolString() const

暗号のプロトコルをQString として返す。

protocol()も参照

int QSslCipher::supportedBits() const

その暗号がサポートするビット数を返す。

usedBits()も参照

[noexcept] void QSslCipher::swap(QSslCipher &other)

この暗号インスタンスをother と交換する。この操作は非常に速く、失敗することはない。

int QSslCipher::usedBits() const

暗号化で使用するビット数を返す。

supportedBits()も参照

bool QSslCipher::operator!=(const QSslCipher &other) const

この暗号がother と同じでない場合はtrue を返し、そうでない場合は false を返す。

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

other の内容をこの暗号にコピーし、2つの暗号を同一にする。

bool QSslCipher::operator==(const QSslCipher &other) const

この暗号がother と同じであればtrue を返し、そうでなければ false を返す。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.