ThreatMatch
یک تطابق هنگام بررسی یک ورودی تهدید در لیست های تهدید مرور ایمن.
فیلدها |
---|
threatType | enum ( ThreatType ) نوع تهدید با این تهدید مطابقت دارد. |
platformType | enum ( PlatformType ) نوع پلت فرم با این تهدید مطابقت دارد. |
threatEntryType | enum ( ThreatEntryType ) نوع ورود تهدید با این تهدید مطابقت دارد. |
threat | object ( ThreatEntry ) تهدید با این تهدید مطابقت دارد. |
threatEntryMetadata | object ( ThreatEntryMetadata ) فراداده اختیاری مرتبط با این تهدید. |
cacheDuration | string ( Duration format) طول عمر حافظه پنهان برای بازی برگشتی. مشتریان نباید این پاسخ را بیش از این مدت در حافظه پنهان نگه دارند تا از مثبت کاذب جلوگیری کنند. مدت زمان در ثانیه با حداکثر نه رقم کسری که با ' s ' ختم می شود. مثال: "3.5s" . |
ThreatEntryMetadata
فراداده مرتبط با یک ورودی تهدید خاص. از مشتری انتظار می رود جفت های کلید/مقدار فراداده مرتبط با هر نوع تهدید را بداند.
ورود فراداده
نمایندگی JSON |
---|
{
"key": string,
"value": string
} |
فیلدها |
---|
key | string ( bytes format) کلید ورود فراداده برای درخواست های JSON، کلید با پایه 64 کدگذاری شده است. رشته ای با کد base64. |
value | string ( bytes format) مقدار ورودی فراداده برای درخواستهای JSON، مقدار با پایه 64 کدگذاری میشود. رشته ای با کد base64. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["ThreatMatch indicates a match when checking for threats in Safe Browsing threat lists, containing information about the threat type, platform, and entry type."],["It includes optional metadata associated with the specific threat entry, which may provide additional context."],["ThreatEntryMetadata stores this metadata as key-value pairs, understood by the client based on the threat type."],["MetadataEntry represents a single metadata entry, where both the key and value are base64-encoded for JSON requests."]]],["The document defines data structures for threat matches in Safe Browsing. A threat match includes `threatType`, `platformType`, `threatEntryType`, and the matching `threat`. It may optionally contain `threatEntryMetadata`, consisting of `MetadataEntry` objects with `key` and `value` string pairs. Each match also specifies `cacheDuration`, dictating how long the match should be considered valid, to avoid false positives. Data representation is in JSON format with specific structure for `ThreatEntryMetadata` and `MetadataEntry`.\n"]]