JWK class

JSON Web Key (JWK) representation.

Constructors

JWK({required String kty, required List<String> keyOps, String? alg, String? kid, Map<String, dynamic>? additionalProperties})
JSON Web Key (JWK) representation.
JWK.fromJson(Map<String, dynamic> json)
Creates a JWK from a JSON map.
factory

Properties

alg 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
keyOps List<String>
The "key_ops" (key operations) parameter identifies the cryptographic operations for which the key is intended to be used.
final
kid String?
The "kid" (key ID) parameter is used to match a specific key.
final
kty String
The "kty" (key type) parameter identifies the cryptographic algorithm family used with the key, such as "RSA" or "EC".
final
rsaPublicKey → RSAPublicKey
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[].