RelayAuth class

Implemented types

Constructors

RelayAuth()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

decodeData(Uint8List data) → JWTData
override
decodeIss(String issuer) → Uint8List
Gets the public key from the issuer
override
decodeJson(String s) → Map<String, dynamic>
override
decodeJWT(String encoded) → JWTDecoded
override
decodeSig(String encoded) → Uint8List
override
encodeData(JWTData params) → Uint8List
override
encodeIss(Uint8List publicKey) → String
Encodes the public key into a multicodec issuer
override
encodeJson(Map<String, dynamic> value) → String
override
encodeJWT(JWTSigned params) → String
override
encodeSig(Uint8List bytes) → String
override
generateKeyPair([Uint8List? seed]) → Future<RelayAuthKeyPair>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signJWT({required String sub, required String aud, required int ttl, required RelayAuthKeyPair keyPair, int? iat}) → Future<String>
override
stripEquals(String s) → String
toString() → String
A string representation of this object.
inherited
verifyJWT(String jwt) → Future<bool>
override

Operators

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