Class OwaspMethodDescriptor
- Namespace
- Kuestenlogik.Bowire.Security
- Assembly
- Kuestenlogik.Bowire.dll
The method shape the mapper reasons over.
public sealed record OwaspMethodDescriptor : IEquatable<OwaspMethodDescriptor>
- Inheritance
-
OwaspMethodDescriptor
- Implements
- Inherited Members
Constructors
OwaspMethodDescriptor(string, string?, IReadOnlyList<string>?)
The method shape the mapper reasons over.
public OwaspMethodDescriptor(string Path, string? Verb = null, IReadOnlyList<string>? RequestFields = null)
Parameters
PathstringRequest path / method route (e.g.
/orders/{id},pkg.Svc/Delete).VerbstringHTTP verb / method kind (GET/POST/…); null when unknown.
RequestFieldsIReadOnlyList<string>Request-body / input field names (for mass-assignment + SSRF signals).
Properties
Path
Request path / method route (e.g. /orders/{id}, pkg.Svc/Delete).
public string Path { get; init; }
Property Value
RequestFields
Request-body / input field names (for mass-assignment + SSRF signals).
public IReadOnlyList<string>? RequestFields { get; init; }
Property Value
Verb
HTTP verb / method kind (GET/POST/…); null when unknown.
public string? Verb { get; init; }
Property Value
Methods
Deconstruct(out string, out string?, out IReadOnlyList<string>?)
public void Deconstruct(out string Path, out string? Verb, out IReadOnlyList<string>? RequestFields)
Parameters
PathstringVerbstringRequestFieldsIReadOnlyList<string>
Equals(OwaspMethodDescriptor?)
public bool Equals(OwaspMethodDescriptor? other)
Parameters
otherOwaspMethodDescriptor
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(OwaspMethodDescriptor?, OwaspMethodDescriptor?)
public static bool operator ==(OwaspMethodDescriptor? left, OwaspMethodDescriptor? right)
Parameters
leftOwaspMethodDescriptorrightOwaspMethodDescriptor
Returns
operator !=(OwaspMethodDescriptor?, OwaspMethodDescriptor?)
public static bool operator !=(OwaspMethodDescriptor? left, OwaspMethodDescriptor? right)
Parameters
leftOwaspMethodDescriptorrightOwaspMethodDescriptor