OfflineTokenReason enum

Reasons for token verification failure.

Evaluated in a fixed order where the first failure determines the reason:

  1. malformed
  2. algNotAllowed
  3. typInvalid
  4. malformed (if critical headers present)
  5. kidUnknown
  6. signatureInvalid
  7. claimsInvalid
  8. audInvalid
  9. issInvalid
  10. expired
Inheritance
Available extensions

Values

malformed → const OfflineTokenReason
const OfflineTokenReason('malformed')
algNotAllowed → const OfflineTokenReason
const OfflineTokenReason('alg_not_allowed')
typInvalid → const OfflineTokenReason
const OfflineTokenReason('typ_invalid')
kidUnknown → const OfflineTokenReason
const OfflineTokenReason('kid_unknown')
signatureInvalid → const OfflineTokenReason
const OfflineTokenReason('signature_invalid')
claimsInvalid → const OfflineTokenReason
const OfflineTokenReason('claims_invalid')
audInvalid → const OfflineTokenReason
const OfflineTokenReason('aud_invalid')
issInvalid → const OfflineTokenReason
const OfflineTokenReason('iss_invalid')
expired → const OfflineTokenReason
const OfflineTokenReason('expired')

Properties

code → String
String code corresponding to the acceptance test vectors.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromCode(String code) → OfflineTokenReason?
Looks up a reason by its string code.

Constants

values → const List<OfflineTokenReason>
A constant List of the values in this enum, in order of their declaration.