Destroys the keypair identified by the given fingerprint
public destroyKeypair ( string $fingerprint ) : void | ||
$fingerprint | string | The fingerprint |
return | void |
/** * @test */ public function shutdownSavesKeysToKeystoreFileIfKeysWereModified() { $this->assertFalse(file_exists('vfs://Foo/EncryptionKey')); $keyPairUuid = $this->rsaWalletService->generateNewKeypair(true); $this->rsaWalletService->shutdownObject(); $this->assertTrue(file_exists('vfs://Foo/EncryptionKey')); $this->rsaWalletService->destroyKeypair($keyPairUuid); $this->rsaWalletService->initializeObject(); $this->rsaWalletService->getPublicKey($keyPairUuid); }