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는 하나의 암호화 암호에 대한 정보를 저장합니다. 소켓이 사용할 수 있는 암호를 구성하거나 사용자에게 소켓의 암호를 표시하기 위해 QSslSocket 와 함께 가장 일반적으로 사용됩니다.

QSslSocketQSslKey도 참조하세요 .

멤버 함수 문서

QSslCipher::QSslCipher()

빈 QSslCipher 객체를 생성합니다.

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

name 에 의해 결정된 암호에 대한 QSslCipher 객체를 구축합니다. 생성자는 지원되는 암호만 허용합니다(즉, name 은 QSslSocket::supportedCiphers()가 반환한 암호 목록에서 암호를 식별해야 합니다).

생성 후 isNull()를 호출하여 name 이 지원되는 암호를 올바르게 식별했는지 확인할 수 있습니다.

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

nameprotocol 에 의해 결정된 암호에 대한 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

암호의 이름을 반환하거나, 널 암호인 경우 빈 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 의 내용을 이 암호에 복사하여 두 암호를 동일하게 만듭니다.

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.