StepUpChallenge class
The demand half of a step-up exchange: what the maintainer returns in the details
of a stepUpRequired error, naming the method the consumer must satisfy and the
challenge its proof must answer. The consumer's reply is a StepUpProof, whose
challengeId echoes the challengeId here — the two definitions are the two ends
of one exchange and their method/kind vocabularies MUST stay in step.
Referenced by the detailsSchema of vault/release, vault/proxy-login, and
vault/sign-trust-task, which previously each restated it.
Constructors
- StepUpChallenge({required StepUpChallengeMethod method, required String challengeId, int? ttlSeconds})
-
const
-
StepUpChallenge.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- challengeId → String
-
Maintainer-issued challenge id. The consumer echoes this in
StepUpProof.challengeIdso the maintainer can bind the proof to the demand that provoked it.final - hashCode → int
-
The hash code for this object.
no setterinherited
- method → StepUpChallengeMethod
-
The step-up method the consumer must satisfy. Mirrors
StepUpProof.kind.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- ttlSeconds → int?
-
How long the challenge remains answerable. Advisory to the consumer; the maintainer
enforces its own expiry.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited