P256WebCryptoProvider class final

The default CryptoProvider: ECDSA P-256 (ES256) backed by package:webcrypto, which wraps native BoringSSL (mobile/desktop) or the browser's Web Crypto API (web).

This is the only file in dpop_flutter that imports package:webcrypto.

Constructors

P256WebCryptoProvider()
Creates a P-256 crypto provider.
const

Properties

algorithm String
The alg value this provider produces, e.g. "ES256" for P-256.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateKeyPair() Future<DpopKeyPair>
Generates a new key pair.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sha256(Uint8List data) Future<Uint8List>
Computes a SHA-256 digest of data. Used for the JWK Thumbprint (jkt) and the access token hash (ath).
sign(DpopKeyPair keyPair, Uint8List signingInput) Future<Uint8List>
Signs signingInput (the JWS signing input: base64url(header) + "." + base64url(payload), as ASCII bytes) with keyPair's private key.
toString() String
A string representation of this object.
inherited

Operators

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