QCoapSecurityConfiguration Class
QCoapSecurityConfiguration 클래스는 인증 과정에서 설정 옵션을 관리합니다. 더 보기...
| 헤더: | #include <QCoapSecurityConfiguration> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Coap) target_link_libraries(mytarget PRIVATE Qt6::Coap) |
| qmake: | QT += coap |
공개 함수
| QCoapSecurityConfiguration() | |
| QCoapSecurityConfiguration(const QCoapSecurityConfiguration &other) | |
| QCoapSecurityConfiguration(QCoapSecurityConfiguration &&other) | |
| ~QCoapSecurityConfiguration() | |
| QList<QSslCertificate> | caCertificates() const |
| QString | defaultCipherString() const |
| QList<QSslCertificate> | localCertificateChain() const |
| QByteArray | preSharedKey() const |
| QByteArray | preSharedKeyIdentity() const |
| QCoapPrivateKey | privateKey() const |
| void | setCaCertificates(const QList<QSslCertificate> &certificates) |
| void | setDefaultCipherString(const QString &cipherString) |
| void | setLocalCertificateChain(const QList<QSslCertificate> &localChain) |
| void | setPreSharedKey(const QByteArray &preSharedKey) |
| void | setPreSharedKeyIdentity(const QByteArray &identity) |
| void | setPrivateKey(const QCoapPrivateKey &key) |
| void | swap(QCoapSecurityConfiguration &other) |
| QCoapSecurityConfiguration & | operator=(const QCoapSecurityConfiguration &other) |
멤버 함수 설명
QCoapSecurityConfiguration::QCoapSecurityConfiguration()
새로운 QCoapSecurityConfiguration 객체를 생성합니다.
QCoapSecurityConfiguration::QCoapSecurityConfiguration(const QCoapSecurityConfiguration &other)
other 의 구성 및 상태를 복사합니다.
[noexcept] QCoapSecurityConfiguration::QCoapSecurityConfiguration(QCoapSecurityConfiguration &&other)
QCoapSecurityConfiguration 객체를 move-construct하여, 이 객체가 other 가 가리키던 것과 동일한 객체를 가리키도록 만듭니다.
[noexcept] QCoapSecurityConfiguration::~QCoapSecurityConfiguration()
QCoapSecurityConfiguration 가 보유하고 있는 모든 리소스를 해제합니다.
QList<QSslCertificate> QCoapSecurityConfiguration::caCertificates() const
이 연결의 인증 기관(CA) 인증서 데이터베이스를 반환합니다.
setCaCertificates()도 참조하십시오 .
QString QCoapSecurityConfiguration::defaultCipherString() const
기본 암호 문자열을 반환합니다.
setDefaultCipherString()도 참조하십시오 .
QList<QSslCertificate> QCoapSecurityConfiguration::localCertificateChain() const
핸드셰이크 과정에서 상대방에게 제시할 인증서 체인을 반환합니다.
setLocalCertificateChain()도 참조하십시오 .
QByteArray QCoapSecurityConfiguration::preSharedKey() const
사전 공유 키를 반환합니다.
setPreSharedKey()도 참조하십시오 .
QByteArray QCoapSecurityConfiguration::preSharedKeyIdentity() const
PSK 클라이언트 식별자를 반환합니다.
setPreSharedKeyIdentity()도 참조하십시오 .
QCoapPrivateKey QCoapSecurityConfiguration::privateKey() const
연결에 할당된 개인 키를 반환합니다.
setPrivateKey() 및 localCertificateChain()도 참조하십시오 .
void QCoapSecurityConfiguration::setCaCertificates(const QList<QSslCertificate> &certificates)
certificates 를 해당 연결의 인증 기관 데이터베이스로 설정합니다.
caCertificates()도 참조하십시오 .
void QCoapSecurityConfiguration::setDefaultCipherString(const QString &cipherString)
SSL 암호 문자열을 cipherString 로 설정합니다.
보안 백엔드(예: OpenSSL)에는 기본적으로 RFC 7252에서 요구하는 암호 방식이 포함되어 있지 않을 수 있습니다. 이 메서드는 백엔드가 사용해야 할 암호 방식을 지정합니다. 예를 들어, RFC에서 요구하는 CCM 암호 방식을 활성화하려면 "AESCCM"을 cipherString 으로 전달하면 됩니다.
암호화 문자열에 대한 자세한 내용은 OpenSSL 문서를 참조하십시오.
defaultCipherString()도 참조하십시오 .
void QCoapSecurityConfiguration::setLocalCertificateChain(const QList<QSslCertificate> &localChain)
핸드셰이크 중에 상대방에게 제시할 인증서 체인으로 localChain 을 설정합니다.
localCertificateChain()도 참조하십시오 .
void QCoapSecurityConfiguration::setPreSharedKey(const QByteArray &preSharedKey)
사전 공유 키를 preSharedKey 로 설정합니다.
preSharedKey()도 참조하십시오 .
void QCoapSecurityConfiguration::setPreSharedKeyIdentity(const QByteArray &identity)
PSK 클라이언트 식별자(서버에 알릴 것)를 identity 로 설정합니다.
preSharedKeyIdentity()도 참조하십시오 .
void QCoapSecurityConfiguration::setPrivateKey(const QCoapPrivateKey &key)
연결의 개인 키를 key 로 설정합니다.
privateKey() 및 setLocalCertificateChain()도 참조하십시오 .
[noexcept] void QCoapSecurityConfiguration::swap(QCoapSecurityConfiguration &other)
이 보안 구성을 other 로 교체합니다. 이 작업은 매우 빠르게 수행되며 절대 실패하지 않습니다.
QCoapSecurityConfiguration &QCoapSecurityConfiguration::operator=(const QCoapSecurityConfiguration &other)
other 의 구성 및 상태를 복사합니다.
© 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.