dart/certificate_provider library

Enums

Algorithm
Types of supported cryptographic signature algorithms.
Error
Types of errors that the extension can report.
Hash
Deprecated. Replaced by Algorithm.
PinRequestErrorType
The types of errors that can be presented to the user through the requestPin function.
PinRequestType
The type of code being requested by the extension with requestPin function.

Properties

chrome Chrome
final

Typedefs

CertificatesCallback = void Function(List<CertificateInfo>, void (List<ByteBuffer>))
Call this exactly once with the list of certificates that this extension is providing. The list must only contain certificates for which the extension can sign data using the associated private key. If the list contains invalid certificates, these will be ignored. All valid certificates are still registered for the extension. Chrome will call back with the list of rejected certificates, which might be empty.
ResultCallback = void Function(List<ByteBuffer>)
The callback provided by the extension that Chrome uses to report back rejected certificates. See CertificatesCallback.
SignCallback = void Function(ByteBuffer?)
If no error occurred, this function must be called with the signature of the digest using the private key of the requested certificate. For an RSA key, the signature must be a PKCS#1 signature. The extension is responsible for prepending the DigestInfo prefix and adding PKCS#1 padding. If an error occurred, this callback should be called without signature.