data HTTPSignatures::Verified

What a verified request was signed with, and its body.

src/verify.qz:6

Methods

def with(*, key_id: String = …, algorithm: String = …, headers: Array[String] = …, body: Bytes = …) -> HTTPSignatures::Verified

A copy with the fields given replaced.

src/verify.qz:6

def to_h -> Hash[Symbol, Object]

The fields as a Hash, by name.

src/verify.qz:6

def key_id -> String

The signature's keyId, the key the block gave for it verified.

src/verify.qz:8

def algorithm -> String

The signature's algorithm: "rsa-sha256" or "hs2019" (also when the signature names none).

src/verify.qz:11

def headers -> Array[String]

The names the signature covers, lowercased, in its order.

src/verify.qz:13

def body -> Bytes

The request's body, read whole to check its Digest: use it, the request's body has been read.

src/verify.qz:16