JWTAlgorithm class abstract

Implementers

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

EdDSA → const EdDSAAlgorithm
EdDSA using Ed25519 curve algorithm
ES256 → const ECDSAAlgorithm
ECDSA using P-256 curve and SHA-256 hash algorithm
ES256K → const ECDSAAlgorithm
ECDSA using secp256k1 curve and SHA-256 hash algorithm
ES384 → const ECDSAAlgorithm
ECDSA using P-384 curve and SHA-384 hash algorithm
ES512 → const ECDSAAlgorithm
ECDSA using P-512 curve and SHA-512 hash algorithm
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
PS256 → const RSAAlgorithm
RSASSA-PSS using SHA-256 hash algorithm
PS384 → const RSAAlgorithm
RSASSA-PSS using SHA-384 hash algorithm
PS512 → const RSAAlgorithm
RSASSA-PSS using SHA-512 hash algorithm
RS256 → const RSAAlgorithm
RSASSA-PKCS1-v1_5 using SHA-256 hash algorithm
RS384 → const RSAAlgorithm
RSASSA-PKCS1-v1_5 using SHA-384 hash algorithm
RS512 → const RSAAlgorithm
RSASSA-PKCS1-v1_5 using SHA-512 hash algorithm