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)

상세 설명

클라이언트 ID, 사전 공유 키, 인증서 정보 등과 같은 정보를 보유합니다.

멤버 함수 문서

QCoapSecurityConfiguration::QCoapSecurityConfiguration()

새 QCoapSecurityConfiguration을 생성합니다.

QCoapSecurityConfiguration::QCoapSecurityConfiguration(const QCoapSecurityConfiguration &other)

other 의 구성 및 상태를 복사합니다.

[noexcept] QCoapSecurityConfiguration::QCoapSecurityConfiguration(QCoapSecurityConfiguration &&other)

Move-큐캡 보안 구성을 생성하여 other 가 가리키던 것과 동일한 객체를 가리키도록 합니다.

[noexcept] QCoapSecurityConfiguration::~QCoapSecurityConfiguration()

QCoapSecurityConfiguration 에서 보유한 모든 리소스를 공개합니다.

QList<QSslCertificate> QCoapSecurityConfiguration::caCertificates() const

이 연결의 인증 기관 인증서 데이터베이스를 반환합니다.

setCaCertificates()도 참조하세요 .

QString QCoapSecurityConfiguration::defaultCipherString() const

기본 암호 문자열을 반환합니다.

setDefaultCipherString()도 참조하세요 .

QList<QSslCertificate> QCoapSecurityConfiguration::localCertificateChain() const

핸드셰이크 중에 상대방에게 제시할 인증서 체인을 반환합니다.

setLocalCertificateChain()도 참조하세요 .

QByteArray QCoapSecurityConfiguration::preSharedKey() const

미리 공유한 키를 반환합니다.

setPreSharedKey()도 참조하세요 .

QByteArray QCoapSecurityConfiguration::preSharedKeyIdentity() const

PSK 클라이언트 ID를 반환합니다.

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 클라이언트 ID를 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 의 구성 및 상태를 복사합니다.

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