Class UnsafeCacheEntry
Unsafe Cache Entry.
Inheritance
Inherited Members
Namespace: Gee.External.Browsing.Cache
Assembly: Gee.External.Browsing.dll
Syntax
public sealed class UnsafeCacheEntry
Constructors
UnsafeCacheEntry(String, IEnumerable<UnsafeThreat>)
Create an Unsafe Cache Entry.
Declaration
public UnsafeCacheEntry(string threatSha256Hash, IEnumerable<UnsafeThreat> unsafeThreats)
Parameters
Type | Name | Description |
---|---|---|
System.String | threatSha256Hash | A full SHA256 hash, formatted as a hexadecimal encoded string, identifying a threat that was retrieved from a IBrowsingCache. |
System.Collections.Generic.IEnumerable<UnsafeThreat> | unsafeThreats | A collection of UnsafeThreat that was retrieved from a IBrowsingCache. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if |
System.FormatException | Thrown if |
Properties
Expired
Determine if Unsafe Cache Entry Has Expired.
Declaration
public bool Expired { get; }
Property Value
Type |
---|
System.Boolean |
Remarks
Determines if the unsafe cache entry has expired and the threat identified by ThreatSha256Hash should no longer be considered unsafe.
ThreatSha256Hash
Get Threat's SHA256 Hash.
Declaration
public string ThreatSha256Hash { get; }
Property Value
Type |
---|
System.String |
Remarks
Represents the full SHA256 hash, formatted as a hexadecimal encoded string, identifying the threat that was retrieved from a IBrowsingCache.
UnsafeThreats
Get Unsafe Threats.
Declaration
public IEnumerable<UnsafeThreat> UnsafeThreats { get; }
Property Value
Type |
---|
System.Collections.Generic.IEnumerable<UnsafeThreat> |
Remarks
Represents the collection of UnsafeThreat that was retrieved from a IBrowsingCache.
Methods
Equals(Object)
Determine if This Object is Equal to Another Object.
Declaration
public override bool Equals(object object)
Parameters
Type | Name | Description |
---|---|---|
System.Object | object | An object to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | A boolean true if the object is equal to |
Overrides
GetHashCode()
Get Object's Hash Code.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The object's hash code. |
Overrides
ToString()
Get Object's String Representation.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The object's string representation. |