class ProtectionEngine::Observer
ProtectionEngine과 관련된 알림을 받는 인터페이스입니다. 이 인터페이스는 보호 SDK를 사용하여 애플리케이션에서 구현해야 합니다.
요약
멤버 | 설명 |
---|---|
public virtual void OnGetTemplatesSuccess(const std::vector<std::shared_ptr<TemplateDescriptor>>& templateDescriptors, const std::shared_ptr<void>& context) | 템플릿을 성공적으로 검색할 때 호출됩니다. |
public virtual void OnGetTemplatesFailure(const std::exception_ptr&error, const std::shared_ptr<void>& context) | 템플릿을 검색할 때 호출되어 오류가 발생했습니다. |
public virtual void OnGetRightsForLabelIdSuccess(const std::shared_ptr<std::vector<std::string>>& rights, const std::shared_ptr<void>& context) | 권한이 성공적으로 검색되었을 때 호출됩니다. |
public virtual void OnGetRightsForLabelIdFailure(const std::exception_ptr& error, const std::shared_ptr<void>& context) | 사용자의 레이블 ID에 대한 권한을 검색할 때 호출됩니다. |
public virtual void OnLoadUserCertSuccess(const std::shared_ptr<void>& context) | 사용자 인증서가 성공적으로 로드될 때 호출됩니다. |
public virtual void OnLoadUserCertFailure(const std::exception_ptr& error, const std::shared_ptr<void>& context) | 사용자 인증서가 로드되지 않은 경우 호출됩니다. |
public virtual void OnRegisterContentForTrackingAndRevocationSuccess(const std::shared_ptr<void>& context) | 추적 및 해지를 위한 콘텐츠 등록에 성공하면 호출됩니다. |
public virtual void OnRegisterContentForTrackingAndRevocationFailure(const std::exception_ptr&error, const std::shared_ptr<void>& context) | 추적 및 해지를 위한 콘텐츠 등록이 실패할 때 호출됩니다. |
public virtual void OnRevokeContentSuccess(const std::shared_ptr<void>& context) | 해지에 성공하면 호출됩니다. |
public virtual void OnRevokeContentFailure(const std::exception_ptr&error, const std::shared_ptr<void>& context) | 콘텐츠 해지에 실패할 때 호출됩니다. |
public virtual void OnCreateDelegatedLicensesSuccess(std::vector<std::shared_ptr<DelegationLicense>> delegatedLicenses, const std::shared_ptr<void>& context) | 위임된 라이선스가 성공적으로 생성될 때 호출됩니다. |
public virtual void OnCreateDelegatedLicensesFailure(const std::exception_ptr& error, const std::shared_ptr<void>& context) | 위임된 라이선스 생성에 실패하면 호출됩니다. |
public virtual void OnGetTenantInformationAsyncSuccess(const std::shared_ptr<TenantInformation>& tenantInformation, const std::shared_ptr<void>& context) | GetTenantInformationAsync가 성공하면 호출됩니다. |
public virtual void OnGetTenantInformationAsyncFailure(const std::exception_ptr& error, const std::shared_ptr<void>& context) | GetTenantInformationAsync가 실패할 때 호출됩니다. |
public virtual void OnGetLicenseRightsDataSuccess(const std::shared_ptr<LicenseRightsData>& licenseRightsData, const std::shared_ptr<void>& context) | 라이선스 권한 데이터를 성공적으로 검색할 때 호출됩니다. |
public virtual void OnGetLicenseRightsDataFailure(const std::exception_ptr& error, const std::shared_ptr<void>& context) | 라이선스 권한 데이터를 검색하지 못할 때 호출됩니다. |
멤버
OnGetTemplatesSuccess 함수
템플릿을 성공적으로 검색할 때 호출됩니다.
매개 변수:
templateDescriptors: 템플릿 설명자 목록에 대한 참조
context: ProtectionEngine::GetTemplatesAsync에 전달된 동일한 컨텍스트
애플리케이션은 모든 유형의 컨텍스트(예: std::p romise, std::function)를 ProtectionEngine::GetTemplatesAsync에 전달할 수 있으며, 동일한 컨텍스트는 ProtectionEngine::Observer::OnGetTemplatesSuccess 또는 ProtectionEngine::Observer::OnGetTemplatesFailure에 있는 그대로 전달됩니다.
OnGetTemplatesFailure 함수
템플릿을 검색할 때 호출되어 오류가 발생했습니다.
매개 변수:
error: 템플릿을 검색하는 동안 발생한 오류
context: ProtectionEngine::GetTemplatesAsync에 전달된 동일한 컨텍스트
애플리케이션은 모든 유형의 컨텍스트(예: std::p romise, std::function)를 ProtectionEngine::GetTemplatesAsync에 전달할 수 있으며, 동일한 컨텍스트는 ProtectionEngine::Observer::OnGetTemplatesSuccess 또는 ProtectionEngine::Observer::OnGetTemplatesFailure에 있는 그대로 전달됩니다.
OnGetRightsForLabelIdSuccess 함수
권한이 성공적으로 검색되었을 때 호출됩니다.
매개 변수:
rights: 검색된 권한 목록에 대한 참조
컨텍스트: ProtectionEngine::GetRightsForLabelIdAsync에 전달된 동일한 컨텍스트
애플리케이션은 모든 유형의 컨텍스트(예: std::p romise, std::function)를 ProtectionEngine::GetRightsForLabelIdAsync에 전달할 수 있으며 동일한 컨텍스트는 ProtectionEngine::Observer::OnGetRightsForLabelIdSuccess 또는 ProtectionEngine::Observer::OnGetRightsForLabelIdFailure에 그대로 전달됩니다.
OnGetRightsForLabelIdFailure 함수
사용자의 레이블 ID에 대한 권한을 검색할 때 호출됩니다.
매개 변수:
error: 권한을 검색하는 동안 발생한 오류
컨텍스트: ProtectionEngine::GetRightsForLabelIdAsync에 전달된 동일한 컨텍스트
애플리케이션은 모든 유형의 컨텍스트(예: std::p romise, std::function)를 ProtectionEngine::GetRightsForLabelIdAsync에 전달할 수 있으며 동일한 컨텍스트는 ProtectionEngine::Observer::OnGetRightsForLabelIdSuccess 또는 ProtectionEngine::Observer::OnGetRightsForLabelIdFailure에 그대로 전달됩니다.
OnLoadUserCertSuccess 함수
사용자 인증서가 성공적으로 로드될 때 호출됩니다.
매개 변수:
- context: ProtectionEngine::LoadUserCert에 전달된 동일한 컨텍스트
애플리케이션은 모든 유형의 컨텍스트(예: std::p romise, std::function)를 ProtectionEngine::LoadUserCertAsync에 전달할 수 있으며 동일한 컨텍스트는 ProtectionEngine::Observer::OnLoadUserCertSuccess 또는 ProtectionEngine::Observer::OnLoadUserCertFailure에 있는 그대로 전달됩니다.
OnLoadUserCertFailure 함수
사용자 인증서가 로드되지 않은 경우 호출됩니다.
매개 변수:
error: 권한을 검색하는 동안 발생한 오류
context: ProtectionEngine::LoadUserCert에 전달된 동일한 컨텍스트
애플리케이션은 모든 유형의 컨텍스트(예: std::p romise, std::function)를 ProtectionEngine::LoadUserCertAsync에 전달할 수 있으며 동일한 컨텍스트는 ProtectionEngine::Observer::OnLoadUserCertSuccess 또는 ProtectionEngine::Observer::OnLoadUserCertFailure에 있는 그대로 전달됩니다.
OnRegisterContentForTrackingAndRevocationSuccess 함수
추적 및 해지를 위한 콘텐츠 등록에 성공하면 호출됩니다.
매개 변수:
- context: ProtectionEngine::RegisterContentForTrackingAndRevocationAsync로 전달된 동일한 컨텍스트
애플리케이션은 모든 유형의 컨텍스트를 전달할 수 있습니다(예: std::p romise, std::function) to ProtectionEngine::RegisterContentForTrackingAndRevocationAsync 및 동일한 컨텍스트가 있는 그대로 ProtectionEngine::Observer::OnRegisterContentForTrackingAndRevocationSuccess 또는 ProtectionEngine::Observer::OnRegisterContentForTrackingAndRevocationFailure로 전달됩니다.
OnRegisterContentForTrackingAndRevocationFailure 함수
추적 및 해지를 위한 콘텐츠 등록이 실패할 때 호출됩니다.
매개 변수:
error: 콘텐츠를 등록하는 동안 발생한 오류
context: ProtectionEngine::RegisterContentForTrackingAndRevocationAsync로 전달된 동일한 컨텍스트
애플리케이션은 모든 유형의 컨텍스트를 전달할 수 있습니다(예: std::p romise, std::function) to ProtectionEngine::RegisterContentForTrackingAndRevocationAsync 및 동일한 컨텍스트가 있는 그대로 ProtectionEngine::Observer::OnRegisterContentForTrackingAndRevocationSuccess 또는 ProtectionEngine::Observer::OnRegisterContentForTrackingAndRevocationFailure로 전달됩니다.
OnRevokeContentSuccess 함수
해지에 성공하면 호출됩니다.
매개 변수:
- context: ProtectionEngine::RevokeContentAsync에 전달된 동일한 컨텍스트
애플리케이션은 모든 유형의 컨텍스트(예: std::p romise, std::function)를 ProtectionEngine::RevokeContentAsync에 전달할 수 있으며 동일한 컨텍스트는 ProtectionEngine::Observer::OnRevokeContentSuccess 또는 ProtectionEngine::Observer::OnRevokeContentFailure에 있는 그대로 전달됩니다.
OnRevokeContentFailure 함수
콘텐츠 해지에 실패할 때 호출됩니다.
매개 변수:
error: 콘텐츠를 취소하는 동안 발생한 오류
context: ProtectionEngine::RevokeContentAsync에 전달된 동일한 컨텍스트
애플리케이션은 모든 유형의 컨텍스트(예: std::p romise, std::function)를 ProtectionEngine::RevokeContentAsync에 전달할 수 있으며 동일한 컨텍스트는 ProtectionEngine::Observer::OnRevokeContentSuccess 또는 ProtectionEngine::Observer::OnRevokeContentFailure에 있는 그대로 전달됩니다.
OnCreateDelegatedLicensesSuccess 함수
위임된 라이선스가 성공적으로 생성될 때 호출됩니다.
매개 변수:
- context: ProtectionEngine::CreateDelegationLicensesAsync에 전달된 동일한 컨텍스트
애플리케이션은 모든 유형의 컨텍스트(예: std::promise, std::function)를 CreateDelegationLicensesAsync에 전달할 수 있으며 동일한 컨텍스트는 있는 그대로 ProtectionEngine::Observer::OnCreateDelegatedLicensesSuccess 또는 ProtectionEngine::OnCreateDelegatedLicensesFailure로 전달됨
OnCreateDelegatedLicensesFailure 함수
위임된 라이선스 생성에 실패하면 호출됩니다.
매개 변수:
error: 발생한 오류
context: ProtectionEngine::CreateDelegationLicensesAsync에 전달된 동일한 컨텍스트
애플리케이션은 모든 유형의 컨텍스트(예: std::promise, std::function)를 CreateDelegationLicensesAsync에 전달할 수 있으며 동일한 컨텍스트는 있는 그대로 ProtectionEngine::Observer::OnCreateDelegatedLicensesSuccess 또는 ProtectionEngine::OnCreateDelegatedLicensesFailure로 전달됨
OnGetTenantInformationAsyncSuccess 함수
GetTenantInformationAsync가 성공하면 호출됩니다.
매개 변수:
- context: ProtectionEngine::GetTenantInformationAsync에 전달된 동일한 컨텍스트
애플리케이션은 모든 유형의 컨텍스트(예: std::p romise, std::function)를 ProtectionEngine::GetTenantInformationAsync에 전달할 수 있으며, 동일한 컨텍스트는 ProtectionEngine::Observer::OnGetTenantInformationAsyncSuccess 또는 ProtectionEngine::Observer::OnGetTenantInformationAsyncFailure에 그대로 전달됩니다.
OnGetTenantInformationAsyncFailure 함수
GetTenantInformationAsync가 실패할 때 호출됩니다.
매개 변수:
error: 발생한 오류
context: ProtectionEngine::GetTenantInformationAsync에 전달된 동일한 컨텍스트
애플리케이션은 모든 유형의 컨텍스트(예: std::p romise, std::function)를 ProtectionEngine::GetTenantInformationAsync에 전달할 수 있으며, 동일한 컨텍스트는 ProtectionEngine::Observer::OnGetTenantInformationAsyncSuccess 또는 ProtectionEngine::Observer::OnGetTenantInformationAsyncFailure에 그대로 전달됩니다.
OnGetLicenseRightsDataSuccess 함수
라이선스 권한 데이터를 성공적으로 검색할 때 호출됩니다.
매개 변수:
rights: 검색된 라이선스 권한 데이터에 대한 참조
context: ProtectionEngine::GetLicenseRightsDataAsync에 전달된 동일한 컨텍스트
애플리케이션은 모든 유형의 컨텍스트(예: std::p romise, std::function)를 ProtectionEngine::GetLicenseRightsDataAsync에 전달할 수 있으며, 동일한 컨텍스트는 ProtectionEngine::Observer::OnGetLicenseRightsDataSuccess 또는 ProtectionEngine::Observer::OnGetLicenseRightsDataFailure에 있는 그대로 전달됩니다.
OnGetLicenseRightsDataFailure 함수
라이선스 권한 데이터를 검색하지 못할 때 호출됩니다.
매개 변수:
오류: 라이선스 권한 데이터를 검색하는 동안 발생한 오류
context: ProtectionEngine::GetLicenseRightsDataAsync에 전달된 동일한 컨텍스트
애플리케이션은 모든 유형의 컨텍스트(예: std::p romise, std::function)를 ProtectionEngine::GetLicenseRightsDataAsync에 전달할 수 있으며, 동일한 컨텍스트는 ProtectionEngine::Observer::OnGetLicenseRightsDataSuccess 또는 ProtectionEngine::Observer::OnGetLicenseRightsDataFailure에 있는 그대로 전달됩니다.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기