(cb)
| 24 | let signCount = 0; |
| 25 | class MyAgent extends BaseAgent { |
| 26 | getIdentities(cb) { |
| 27 | assert.strictEqual(++getIdentitiesCount, 1); |
| 28 | // Ensure that no private portion of the key is used by re-parsing the |
| 29 | // public version of the key |
| 30 | cb(null, [ parseKey(clientKey.key.getPublicSSH()) ]); |
| 31 | } |
| 32 | sign(pubKey, data, options, cb) { |
| 33 | assert.strictEqual(++signCount, 1); |
| 34 | assert.strictEqual(pubKey.getPublicPEM(), clientKey.key.getPublicPEM()); |
no test coverage detected