eric6.WebBrowser.SafeBrowsing.SafeBrowsingThreatList
Module implementing the threat list info class.
Global Attributes
Classes
Functions
HashPrefixList
    Class implementing a container for threat list data.
Derived from
object
Class Attributes
Class Methods
Methods
Static Methods
HashPrefixList (Constructor)
HashPrefixList(prefixLength, rawHashes)
        Constructor
- prefixLength (int)
- 
length of each hash prefix
- rawHashes (str)
- 
raw hash prefixes of given length concatenated and
            sorted in lexicographical order
HashPrefixList.__iter__
__iter__()
        Special method to iterate over the raw hashes.
- Returns:
- 
iterator object
- Return Type:
- 
iterator
HashPrefixList.__len__
__len__()
        Special method to calculate the number of entries.
- Returns:
- 
length
- Return Type:
- 
int
ThreatList
    Class implementing the threat list info.
Derived from
object
Class Attributes
Class Methods
| fromApiEntry | Class method to instantiate a threat list given a threat list entry dictionary. | 
Methods
| ThreatList | Constructor | 
| __repr__ | Special method to generate a printable representation. | 
| asTuple | Public method to convert the object to a tuple. | 
Static Methods
ThreatList.fromApiEntry (class method)
fromApiEntry(entry)
        Class method to instantiate a threat list given a threat list entry
        dictionary.
- entry (dict)
- 
threat list entry dictionary
- Returns:
- 
instantiated object
- Return Type:
- 
ThreatList
ThreatList (Constructor)
ThreatList(threatType, platformType, threatEntryType)
        Constructor
- threatType (str)
- 
threat type
- platformType (str)
- 
platform type
- threatEntryType (str)
- 
threat entry type
ThreatList.__repr__
__repr__()
        Special method to generate a printable representation.
- Returns:
- 
printable representation
- Return Type:
- 
str
ThreatList.asTuple
asTuple()
        Public method to convert the object to a tuple.
- Returns:
- 
tuple containing the threat list info
- Return Type:
- 
tuple of (str, str, str)