SecretsSnapshot
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Value parameters
- conclusiveDecode
-
If true, no further attempts to decode with other secrets will be made, and the decoding result will be returned, wrapped in an Option. Note that a decode can be conclusive without the decoded value being valid - eg. the value may have been signed with a valid secret but expired due to it's own expiration constraints, or even maliciously signed with an unacceptable algorithm (eg a weak algorithm, even 'none' : https://tools.ietf.org/html/rfc7519#section-6.1 )
- decodingFunc
-
a function that attempts to decode a value using the provided secret
Attributes
Concrete methods
This convenience function lets you attempt to decode a value using all applicable secrets, assuming that a successful decode will lead to a populated Option.
This convenience function lets you attempt to decode a value using all applicable secrets, assuming that a successful decode will lead to a populated Option.
Value parameters
- decodingFunc
-
a function that attempts to decode a value using the provided secret - the function should return Some(value) if the decoding was successful, or None if it was not