Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IsUnencrypted.cs
1using System.Threading.Tasks;
2using System.Xml;
4
6{
11 {
16 : base()
17 {
18 }
19
27 : base(Xml, Parent, Document)
28 {
29 }
30
34 public override string LocalName => nameof(IsUnencrypted);
35
43 public override WafAction Create(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document) => new IsUnencrypted(Xml, Parent, Document);
44
50 public override Task<WafResult?> Review(ProcessingState State)
51 {
52 if (!State.Request.Encrypted)
53 return this.ReviewChildren(State);
54 else
55 return Task.FromResult<WafResult?>(null);
56 }
57 }
58}
Checks if the request is unencrypted.
IsUnencrypted(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
Checks if the request is unencrypted.
IsUnencrypted()
Checks if the request is unencrypted.
override string LocalName
XML Local Name for the XML element defining the action.
override WafAction Create(XmlElement Xml, WafAction Parent, WebApplicationFirewall Document)
Creates a WAF action from its XML definition.
override Task< WafResult?> Review(ProcessingState State)
Reviews the processing state, and returns a WAF result, if any.
Abstract base class for Web Application Firewall comparisons.
Definition: WafComparison.cs:9
Contains the current state of a review process.
HttpRequest Request
Current HTTP Request
Abstract base class for Web Application Firewall actions.
Definition: WafAction.cs:17
WebApplicationFirewall Document
Web Application Firewall document.
Definition: WafAction.cs:60
async Task< WafResult?> ReviewChildren(ProcessingState State)
Reviews the processing state, and returns a WAF result, if any.
Definition: WafActions.cs:72
Web Application Firewall for HttpServer.
WafResult
Actions that a Web Server can take after reviewing a request.