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
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) withkeyPair's private key. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited