Jwk class

A class presents a JSON Web Key (JWK).

This class provides methods to create a JWK from JSON, convert it to a JSON string, and convert it to a byte array.

Constructors

Jwk({required String kty, required String crv, required String x, String? d, String? y})
Constructs an instance of Jwk.
Jwk.fromJson(Map<String, dynamic> json)
Creates a Jwk instance from a JSON map.
factory
Jwk.fromString(String str)
Creates a Jwk instance from a JSON string.
factory

Properties

crv String
final
d String?
final
hashCode int
The hash code for this object.
no setterinherited
kty String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
x String
final
y String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the JWK to a JSON map.
toString() String
A string representation of this object.
inherited
toUint8Array() Uint8List
Converts the JWK to a byte array.

Operators

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