MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / revokeUser

Method revokeUser

src/controller/app.controller.js:126–132  ·  view source on GitHub ↗
({fingerprint, userId, keyringId})

Source from the content-addressed store, hash-verified

124 }
125
126 async revokeUser({fingerprint, userId, keyringId}) {
127 const keyring = await keyringById(keyringId);
128 const privateKey = keyring.getPrivateKeyByFpr(fingerprint);
129 const unlockedKey = await this.unlockKey({key: privateKey, reason: 'PWD_DIALOG_REASON_REVOKE_USER'});
130 await keyring.revokeUser(unlockedKey, userId);
131 await this.sendKeyUpdate();
132 }
133
134 async revokeKey({fingerprint, keyringId}) {
135 const keyring = await keyringById(keyringId);

Callers

nothing calls this directly

Calls 3

unlockKeyMethod · 0.95
sendKeyUpdateMethod · 0.95
getPrivateKeyByFprMethod · 0.80

Tested by

no test coverage detected