code()
code() : string
The stable dotted code every finding from this tripwire reports under.
Returns
string —For example "frame.digest_mismatch".
A frame failed authenticated decryption.
Three causes produce this and the symptom cannot tell them apart: the key changed, the bytes were tampered with, or the object was moved to a key it was not sealed under. All three mean the frame cannot be opened here and none of them are repairable by refetching the same object, so the finding names the possibilities rather than picking one.
check(array $observation) : \Drupal\strata\Health\Finding|null
Evaluates the check against one observation.
| array | $observation | Scalars the caller already had in hand. A tripwire reads from this and nothing else. |
A finding when the symptom is present, or NULL when the check is satisfied.