JWK class

JSON Web Key (JWK) representation.

Constructors

JWK({required String keyType, required List<String> keyOperations, String? algorithm, String? keyId, Map<String, dynamic>? additionalProperties})
JSON Web Key (JWK) representation.
JWK.fromJson(Map<String, dynamic> json)
Creates a JWK from a JSON map.
factory

Properties

algorithm → String?
The "alg" (algorithm) parameter identifies the algorithm intended for use with the key.
final
hashCode → int
The hash code for this object.
no setterinherited
keyId → String?
The "kid" (key ID) parameter is used to match a specific key.
final
keyOperations → List<String>
The "key_ops" (key operations) parameter identifies the cryptographic operations for which the key is intended to be used.
final
keyType → String
The "kty" (key type) parameter identifies the cryptographic algorithm family used with the key, such as "RSA" or "EC".
final
publicKey → RSAPublicKey
Builds the RSA public key for verifying RS256 JWTs from this JWK's modulus (n) and exponent (e).
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
toJson() → Map<String, dynamic>
Converts this JWK to a JSON map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited
operator [](String key) → dynamic
Allows accessing additional properties using operator[].