removeCertificate method
Removes certificate
from the given token if present.
Should be used to remove obsolete certificates so that they are not
considered during authentication and do not clutter the certificate
choice. Should be used to free storage in the certificate store.
|tokenId|: The id of a Token returned by getTokens
.
|certificate|: The DER encoding of a X.509 certificate.
|callback|: Called back when this operation is finished.
Implementation
Future<void> removeCertificate(
String tokenId,
ByteBuffer certificate,
) {
var $completer = Completer<void>();
$js.chrome.enterprise.platformKeys.removeCertificate(
tokenId,
certificate.toJS,
() {
if (checkRuntimeLastError($completer)) {
$completer.complete(null);
}
}.toJS,
);
return $completer.future;
}