이 페이지에서

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 와 함께 사용되며, 소켓이 사용할 수 있는 암호화 알고리즘을 구성하거나 사용자에게 소켓의 암호화 알고리즘을 표시하는 데 사용됩니다.

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 객체를 생성합니다. 이 생성자는 지원되는 암호만 허용합니다(즉, name 및 protocol 는 QSslSocket::supportedCiphers()가 반환하는 암호 목록에 포함된 암호를 지정해야 합니다).

생성 후 isNull()을 호출하여 name 및 protocol 가 지원되는 암호를 올바르게 지정했는지 확인할 수 있습니다.

QSslCipher::QSslCipher(const QSslCipher &other)

other 암호화의 동일한 복사본을 생성합니다.

[noexcept] QSslCipher::~QSslCipher()

QSslCipher 객체를 삭제합니다.

QString QSslCipher::authenticationMethod() const

암호화의 인증 방식을 ` QString` 형식으로 반환합니다.

QString QSslCipher::encryptionMethod() const

암호화의 암호화 방식을 ` QString` 객체로 반환합니다.

bool QSslCipher::isNull() const

이것이 null cipher인 경우 ` 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 의 내용을 이 암호에 복사하여, 두 암호를 동일하게 만듭니다.

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

이 암호가 other 와 동일한 경우 true 를 반환하고, 그렇지 않은 경우 false를 반환합니다.

© 2026 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.