AuthAttempt Event
Fires when a connected client makes an authentication attempt.
Syntax
class KMIPServerAuthAttemptEventParams { public: qint64 ConnectionId(); const QString &Username(); const QString &Password(); bool Allow(); void SetAllow(bool bAllow); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void AuthAttempt(KMIPServerAuthAttemptEventParams *e);
// Or, subclass KMIPServer and override this emitter function. virtual int FireAuthAttempt(KMIPServerAuthAttemptEventParams *e) {...}
Remarks
The class fires this event whenever a client attempts to authenticate itself. Use the Allow parameter to let the client through.
Username and Password contain the professed credentials.