ChromeCertificateProvider class

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
no setter
onCertificatesRequested EventStream<void Function(List<CertificateInfo>, void (List<ByteBuffer>))>
This event fires every time the browser requests the current list of certificates provided by this extension. The extension must call reportCallback exactly once with the current list of certificates.
no setter
onCertificatesUpdateRequested EventStream<CertificatesUpdateRequest>
This event fires if the certificates set via setCertificates are insufficient or the browser requests updated information. The extension must call setCertificates with the updated list of certificates and the received certificatesRequestId.
no setter
onSignatureRequested EventStream<SignatureRequest>
This event fires every time the browser needs to sign a message using a certificate provided by this extension via setCertificates. The extension must sign the input data from request using the appropriate algorithm and private key and return it by calling reportSignature with the received signRequestId.
no setter
onSignDigestRequested EventStream<OnSignDigestRequestedEvent>
This event fires every time the browser needs to sign a message using a certificate provided by this extension in reply to an onCertificatesRequested event. The extension must sign the data in request using the appropriate algorithm and private key and return it by calling reportCallback. reportCallback must be called exactly once. |request|: Contains the details about the sign request.
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
reportSignature(ReportSignatureDetails details) Future<void>
Should be called as a response to onSignatureRequested. The extension must eventually call this function for every onSignatureRequested event; the API implementation will stop waiting for this call after some time and respond with a timeout error when this function is called.
requestPin(RequestPinDetails details) Future<PinResponseDetails?>
Requests the PIN from the user. Only one ongoing request at a time is allowed. The requests issued while another flow is ongoing are rejected. It's the extension's responsibility to try again later if another flow is in progress. |details|: Contains the details about the requested dialog. |callback|: Is called when the dialog is resolved with the user input, or when the dialog request finishes unsuccessfully (e.g. the dialog was canceled by the user or was not allowed to be shown).
setCertificates(SetCertificatesDetails details) Future<void>
Sets a list of certificates to use in the browser. The extension should call this function after initialization and on every change in the set of currently available certificates. The extension should also call this function in response to onCertificatesUpdateRequested every time this event is received. |details|: The certificates to set. Invalid certificates will be ignored. |callback|: Called upon completion.
stopPinRequest(StopPinRequestDetails details) Future<void>
Stops the pin request started by the requestPin function. |details|: Contains the details about the reason for stopping the request flow. |callback|: To be used by Chrome to send to the extension the status from their request to close PIN dialog for user.
toString() String
A string representation of this object.
inherited

Operators

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