JWTAlgorithm class abstract

Constructors

JWTAlgorithm()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
JWTAlgorithm name
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
sign(JWTKey key, Uint8List body) Uint8List
Create a signature of the body with key
toString() String
A string representation of this object.
inherited
verify(JWTKey key, Uint8List body, Uint8List signature) bool
Verify the signature of body with key

Operators

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

Static Methods

fromName(String name) JWTAlgorithm
Return the JWTAlgorithm from his string name

Constants

hs256 → const _HMACAlgorithm
HMAC using SHA-256 hash algorithm
hs384 → const _HMACAlgorithm
HMAC using SHA-384 hash algorithm
hs512 → const _HMACAlgorithm
HMAC using SHA-512 hash algorithm