JwtAuthValidator class
JWT token validator implementation
- Implemented types
Constructors
- JwtAuthValidator.hmac(String secretOrPublicKey)
- Create HMAC-based JWT validator
- JwtAuthValidator.rsa(String secretOrPublicKey)
- Create RSA-based JWT validator
Properties
- algorithm → JwtAlgorithm
-
Algorithm type used for validation
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secretOrPublicKey → String
-
Secret key for HMAC or public key for RSA
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validateToken(
String token) → Future< AuthenticationData> -
Validates a token and returns authentication data
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited