Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsmPrivateKeyRingComponent.FindCreatePrivateKey

function FindCreatePrivateKey(const Cert: iCertificate): iMPPrivateKey; overload;
Looks up the private key that matches a certificate (by its public-key identifier), returning nil if this ring holds no matching key. Use it to check whether a given "my" certificate is usable for signing/decryption, or to obtain the key object for a manual crypto operation.
function FindCreatePrivateKey(const PublicKeyIdentifier: OctetString): iMPPrivateKey; overload;
As above, but looks up by a raw PublicKeyIdentifier (the same octet string used when the key was added).