JWK class sealed

Available extensions
Annotations
  • @freezed

Constructors

JWK.new({required PublicKey publicKey, required int expiresAt})
const
factory
JWK.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $JWKCopyWith<JWK>
Create a copy of JWK with the given fields replaced by the non-null parameter values.
no setterinherited
expiresAt int
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
publicKey PublicKey
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

expirationDate() DateTime

Available on JWK, provided by the JWKExtension extension

isExpired() bool

Available on JWK, provided by the JWKExtension extension

map<TResult extends Object?>(TResult $default(_JWK value)) → TResult

Available on JWK, provided by the JWKPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_JWK value)?) → TResult?

Available on JWK, provided by the JWKPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_JWK value)?, {required TResult orElse()}) → TResult

Available on JWK, provided by the JWKPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(PublicKey publicKey, int expiresAt)?, {required TResult orElse()}) → TResult

Available on JWK, provided by the JWKPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes() Uint8List

Available on JWK, provided by the JWKExtension extension

toJson() Map<String, dynamic>
Serializes this JWK to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(PublicKey publicKey, int expiresAt)) → TResult

Available on JWK, provided by the JWKPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(PublicKey publicKey, int expiresAt)?) → TResult?

Available on JWK, provided by the JWKPatterns extension

A variant of when that fallback to returning null

Operators

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