ApproovSigningContext class

Holds the HTTP request data required for canonical signing.

Constructors

ApproovSigningContext({required String requestMethod, required Uri uri, required Map<String, List<String>> headers, required Uint8List? bodyBytes, required String? tokenHeaderName, void onSetHeader(String name, String value)?, void onAddHeader(String name, String value)?})
Captures the request metadata and header snapshot for signing.

Properties

bodyBytes Uint8List?
final
hashCode int
The hash code for this object.
no setterinherited
onAddHeader → void Function(String name, String value)?
final
onSetHeader → void Function(String name, String value)?
final
requestMethod String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenHeaderName String?
final
uri Uri
final

Methods

addHeader(String name, String value) → void
Adds an additional header value while keeping existing ones intact.
ensureContentDigest(SignatureDigest digest, {required bool required}) String?
Ensures the Content-Digest header exists by hashing the request body.
getComponentValue(SfItem component) String?
Resolves the canonical value for a Structured Field component.
hasField(String name) bool
Returns true when a header with the provided name is present.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setHeader(String name, String value) → void
Sets a header to a single canonical value, replacing any previous entry.
snapshotHeaders() Map<String, List<String>>
Returns a copy of the tracked headers map for inspection or replay.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited