duplicate

abstract override fun duplicate(): EcPrivateKey

Creates an independent duplicate of this private key with its own lifecycle and memory buffer. The returned key must be closed independently.

Return

a new PrivateKey instance containing the same key material.

Throws

if this key has already been destroyed.