QOcspResponse Class

이 클래스는 온라인 인증서 상태 프로토콜 응답을 나타냅니다. 더 보기...

헤더: #include <QOcspResponse>
CMake: find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
qmake: QT += network

공용 함수

QOcspResponse()
QOcspResponse(const QOcspResponse &other)
QOcspResponse(QOcspResponse &&other)
~QOcspResponse()
QOcspCertificateStatus certificateStatus() const
class QSslCertificate responder() const
QOcspRevocationReason revocationReason() const
QSslCertificate subject() const
void swap(QOcspResponse &other)
QOcspResponse &operator=(QOcspResponse &&other)
QOcspResponse &operator=(const QOcspResponse &other)
enum class QOcspCertificateStatus { Good, Revoked, Unknown }
enum class QOcspRevocationReason { None, Unspecified, KeyCompromise, CACompromise, AffiliationChanged, …, RemoveFromCRL }
bool operator!=(const QOcspResponse &lhs, const QOcspResponse &rhs)
bool operator==(const QOcspResponse &lhs, const QOcspResponse &rhs)

상세 설명

QOcspResponse 클래스는 TLS 핸드셰이크 중에 클라이언트 측 소켓이 수신한 서버 인증서의 해지 상태를 나타냅니다. QSslSocket 는 OCSP 스테이플링이 활성화된 상태로 구성해야 합니다.

QSslSocket, QSslSocket::ocspResponses(), certificateStatus(), revocationReason(), responder(), subject(), QOcspCertificateStatus, QOcspRevocationReason, QSslConfiguration::setOcspStaplingEnabled(), QSslConfiguration::ocspStaplingEnabled(), QSslConfiguration::peerCertificate()도 참조 하세요.

멤버 기능 문서

QOcspResponse::QOcspResponse()

상태 QOcspCertificateStatus::Unknown 및 해지 사유 QOcspRevocationReason::None 로 새 응답을 만듭니다.

QOcspCertificateStatus도 참조하세요 .

QOcspResponse::QOcspResponse(const QOcspResponse &other)

Copy - QOcspResponse 인스턴스를 생성합니다.

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

Move - QOcspResponse 인스턴스를 생성합니다.

[noexcept] QOcspResponse::~QOcspResponse()

응답을 삭제합니다.

QOcspCertificateStatus QOcspResponse::certificateStatus() const

인증서 상태를 반환합니다.

QOcspCertificateStatus참조하세요 .

class QSslCertificate QOcspResponse::responder() const

이 함수는 OCSP 응답에 서명하는 데 사용되는 인증서를 반환합니다.

QOcspRevocationReason QOcspResponse::revocationReason() const

해지 사유를 반환합니다.

QSslCertificate QOcspResponse::subject() const

이 함수는 이 응답이 발급된 인증서를 반환합니다.

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

이 응답을 other 로 바꿉니다. 이 작업은 매우 빠르며 실패하지 않습니다.

[noexcept] QOcspResponse &QOcspResponse::operator=(QOcspResponse &&other)

이동-이 other 인스턴스를 QOcspResponse 인스턴스에 할당합니다.

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

other 복사-할당하고 이 응답에 대한 참조를 반환합니다.

관련 비회원

enum class QOcspCertificateStatus

온라인 인증서 상태를 설명합니다.

상수설명
QOcspResponse::QOcspCertificateStatus::Good0인증서가 해지되지는 않았지만 인증서가 발급된 적이 있거나 응답이 생성된 시간이 인증서의 유효 기간 내에 있다는 것을 의미하지는 않습니다.
QOcspResponse::QOcspCertificateStatus::Revoked1이 상태는 인증서가 철회되었음을 나타냅니다(영구적으로 또는 일시적으로 - 보류 중).
QOcspResponse::QOcspCertificateStatus::Unknown2이 상태는 응답자가 요청된 인증서에 대해 알지 못함을 나타냅니다.

QOcspRevocationReason참조하세요 .

enum class QOcspRevocationReason

해지 사유를 설명합니다.

이 열거형은 RFC 5280, 섹션 5.3.1에 정의된 해지 사유를 설명합니다.

Constant
QOcspResponse::QOcspRevocationReason::None-1
QOcspResponse::QOcspRevocationReason::Unspecified0
QOcspResponse::QOcspRevocationReason::KeyCompromise1
QOcspResponse::QOcspRevocationReason::CACompromise2
QOcspResponse::QOcspRevocationReason::AffiliationChanged3
QOcspResponse::QOcspRevocationReason::Superseded4
QOcspResponse::QOcspRevocationReason::CessationOfOperation5
QOcspResponse::QOcspRevocationReason::CertificateHold6
QOcspResponse::QOcspRevocationReason::RemoveFromCRL7

bool operator!=(const QOcspResponse &lhs, const QOcspResponse &rhs)

lhsrhs 가 다른 인증서에 대한 응답이거나 다른 응답자가 서명했거나 다른 해지 이유 또는 다른 인증서 상태인 경우 true 를 반환합니다.

bool operator==(const QOcspResponse &lhs, const QOcspResponse &rhs)

lhsrhs 이 동일한 응답자가 서명하고 동일한 해지 이유 및 동일한 인증서 상태를 가진 동일한 인증서에 대한 응답인 경우 true 을 반환합니다.

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