BeforeGenerateKey Event
Fires when a key generation request is received.
Syntax
class KMIPServerBeforeGenerateKeyEventParams { public: qint64 ConnectionId(); const QString &KeyAlgorithm(); void SetKeyAlgorithm(const QString &qsKeyAlgorithm); int KeyLength(); void SetKeyLength(int iKeyLength); const QString &DefaultECCurve(); void SetDefaultECCurve(const QString &qsDefaultECCurve); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void BeforeGenerateKey(KMIPServerBeforeGenerateKeyEventParams *e);
// Or, subclass KMIPServer and override this emitter function. virtual int FireBeforeGenerateKey(KMIPServerBeforeGenerateKeyEventParams *e) {...}
Remarks
The class fires this event when it receives a request from the client to generate a key or keypair. KeyAlgorithm, KeyLength, and DefaultECCurve parameters specify the requested key properties.