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

Path string

Request path / method route (e.g. /orders/{id}, pkg.Svc/Delete).

Verb string

HTTP verb / method kind (GET/POST/…); null when unknown.

RequestFields IReadOnlyList<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

string

RequestFields

Request-body / input field names (for mass-assignment + SSRF signals).

public IReadOnlyList<string>? RequestFields { get; init; }

Property Value

IReadOnlyList<string>

Verb

HTTP verb / method kind (GET/POST/…); null when unknown.

public string? Verb { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string?, out IReadOnlyList<string>?)

public void Deconstruct(out string Path, out string? Verb, out IReadOnlyList<string>? RequestFields)

Parameters

Path string
Verb string
RequestFields IReadOnlyList<string>

Equals(OwaspMethodDescriptor?)

public bool Equals(OwaspMethodDescriptor? other)

Parameters

other OwaspMethodDescriptor

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(OwaspMethodDescriptor?, OwaspMethodDescriptor?)

public static bool operator ==(OwaspMethodDescriptor? left, OwaspMethodDescriptor? right)

Parameters

left OwaspMethodDescriptor
right OwaspMethodDescriptor

Returns

bool

operator !=(OwaspMethodDescriptor?, OwaspMethodDescriptor?)

public static bool operator !=(OwaspMethodDescriptor? left, OwaspMethodDescriptor? right)

Parameters

left OwaspMethodDescriptor
right OwaspMethodDescriptor

Returns

bool