Show / Hide Table of Contents

Class UnsafeCacheEntry

Unsafe Cache Entry.

Inheritance
System.Object
UnsafeCacheEntry
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
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 threatSha256Hash is a null reference, or if unsafeThreats is a null reference.

System.FormatException

Thrown if threatSha256Hash is not hexadecimal encoded.

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 object. A boolean false otherwise.

Overrides
System.Object.Equals(System.Object)

GetHashCode()

Get Object's Hash Code.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

The object's hash code.

Overrides
System.Object.GetHashCode()

ToString()

Get Object's String Representation.

Declaration
public override string ToString()
Returns
Type Description
System.String

The object's string representation.

Overrides
System.Object.ToString()
Back to top Generated by DocFX