JsonWebAlgorithm class

Constructors

JsonWebAlgorithm(String name, {required String type, required String use, int? minKeyBitLength, String? curve})
const

Properties

curve String?
final
hashCode int
The hash code for this object.
no setterinherited
keyOperations List<String>
The operation(s) that the key is intended to be used for.
no setter
minKeyBitLength int?
The minimum bit length of the key
final
name String
Name of the algorithm as used in the alg or enc header parameter values.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The cryptographic algorithm family, such as RSA or EC.
final
use String
The intended use of the algorithm.
final

Methods

generateCryptoKeyPair({int? keyBitLength}) → KeyPair
generateRandomKey({int? keyBitLength}) JsonWebKey
jwkFromCryptoKeyPair(KeyPair keyPair) JsonWebKey?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

find({String? operation, String? keyType}) Iterable<JsonWebAlgorithm>
getByName(String? name) JsonWebAlgorithm

Constants

a128cbc_hs256 → const JsonWebAlgorithm
AES_128_CBC_HMAC_SHA_256 authenticated encryption algorithm
a128gcm → const JsonWebAlgorithm
AES GCM using 128-bit key
a128kw → const JsonWebAlgorithm
AES Key Wrap with default initial value using 128-bit key
a192cbc_hs384 → const JsonWebAlgorithm
AES_192_CBC_HMAC_SHA_384 authenticated encryption algorithm
a192gcm → const JsonWebAlgorithm
AES GCM using 192-bit key
a192kw → const JsonWebAlgorithm
AES Key Wrap with default initial value using 192-bit key
a256cbc_hs512 → const JsonWebAlgorithm
AES_256_CBC_HMAC_SHA_512 authenticated encryption algorithm
a256gcm → const JsonWebAlgorithm
AES GCM using 256-bit key
a256kw → const JsonWebAlgorithm
AES Key Wrap with default initial value using 256-bit key
allAlgorithms → const List<JsonWebAlgorithm>
es256 → const JsonWebAlgorithm
ECDSA using P-256 and SHA-256
es256k → const JsonWebAlgorithm
ECDSA using P-256 and SHA-256
es384 → const JsonWebAlgorithm
ECDSA using P-384 and SHA-384
es512 → const JsonWebAlgorithm
ECDSA using P-521 and SHA-512
hs256 → const JsonWebAlgorithm
HMAC using SHA-256
hs384 → const JsonWebAlgorithm
HMAC using SHA-384
hs512 → const JsonWebAlgorithm
HMAC using SHA-512
rs256 → const JsonWebAlgorithm
RSASSA-PKCS1-v1_5 using SHA-256
rs384 → const JsonWebAlgorithm
RSASSA-PKCS1-v1_5 using SHA-384
rs512 → const JsonWebAlgorithm
RSASSA-PKCS1-v1_5 using SHA-512
rsa1_5 → const JsonWebAlgorithm
RSAES-PKCS1-v1_5
rsa_oaep → const JsonWebAlgorithm
RSAES OAEP using default parameters
rsa_oaep_256 → const JsonWebAlgorithm
RSAES OAEP using SHA-256 and MGF1 with SHA-256