BeforeGenerateKey Event
Fires when a key generation request is received.
Syntax
public event OnBeforeGenerateKeyHandler OnBeforeGenerateKey; public delegate void OnBeforeGenerateKeyHandler(object sender, KmipserverBeforeGenerateKeyEventArgs e); public class KmipserverBeforeGenerateKeyEventArgs : EventArgs { public long ConnectionId { get; } public string KeyAlgorithm { get; set; } public int KeyLength { get; set; } public string DefaultECCurve { get; set; } }
Public Event OnBeforeGenerateKey As OnBeforeGenerateKeyHandler Public Delegate Sub OnBeforeGenerateKeyHandler(sender As Object, e As KmipserverBeforeGenerateKeyEventArgs) Public Class KmipserverBeforeGenerateKeyEventArgs Inherits EventArgs Public ReadOnly Property ConnectionId As Long Public Property KeyAlgorithm As String Public Property KeyLength As Integer Public Property DefaultECCurve As String End Class
Remarks
The component 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.