data HTTPSignatures::Verified
What a verified request was signed with, and its body.
Methods
def with(*, key_id: String = …, algorithm: String = …, headers: Array[String] = …, body: Bytes = …) -> HTTPSignatures::Verified
A copy with the fields given replaced.
def to_h -> Hash[Symbol, Object]
The fields as a Hash, by name.
def key_id -> String
The signature's keyId, the key the block gave for it verified.
def algorithm -> String
The signature's algorithm: "rsa-sha256" or "hs2019" (also when
the signature names none).
def headers -> Array[String]
The names the signature covers, lowercased, in its order.
def body -> Bytes
The request's body, read whole to check its Digest: use it, the request's body has been read.