Class HSTSPolicy
- Namespace
- Soup
- Assembly
- Soup-3.0.dll
public sealed class HSTSPolicy : BoxedRecord, IEquatable<HSTSPolicy>
- Inheritance
-
HSTSPolicy
- Implements
- Inherited Members
Constructors
HSTSPolicy(HSTSPolicyOwnedHandle)
public HSTSPolicy(HSTSPolicyOwnedHandle handle)
Parameters
handle
HSTSPolicyOwnedHandle
Properties
Handle
public HSTSPolicyOwnedHandle Handle { get; }
Property Value
Methods
Copy()
public HSTSPolicy Copy()
Returns
Equal(HSTSPolicy)
public bool Equal(HSTSPolicy policy2)
Parameters
policy2
HSTSPolicy
Returns
Equals(HSTSPolicy?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(HSTSPolicy? other)
Parameters
other
HSTSPolicyAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Free()
public void Free()
GetDomain()
public string GetDomain()
Returns
GetExpires()
public DateTime GetExpires()
Returns
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetMaxAge()
public ulong GetMaxAge()
Returns
IncludesSubdomains()
public bool IncludesSubdomains()
Returns
IsExpired()
public bool IsExpired()
Returns
IsSessionPolicy()
public bool IsSessionPolicy()
Returns
New(string, ulong, bool)
public static HSTSPolicy New(string domain, ulong maxAge, bool includeSubdomains)
Parameters
Returns
NewFromResponse(Message)
public static HSTSPolicy? NewFromResponse(Message msg)
Parameters
msg
Message
Returns
NewFull(string, ulong, DateTime, bool)
public static HSTSPolicy NewFull(string domain, ulong maxAge, DateTime expires, bool includeSubdomains)
Parameters
Returns
NewSessionPolicy(string, bool)
public static HSTSPolicy NewSessionPolicy(string domain, bool includeSubdomains)