SecureBlackbox 2020 .NET Edition

Questions / Feedback?

DecryptionInfoNeeded Event

Requests decryption information from the application.

Syntax

public event OnDecryptionInfoNeededHandler OnDecryptionInfoNeeded;

public delegate void OnDecryptionInfoNeededHandler(object sender, XmldecryptorDecryptionInfoNeededEventArgs e);

public class XmldecryptorDecryptionInfoNeededEventArgs : EventArgs {
  public bool CancelDecryption { get; set; }
}
Public Event OnDecryptionInfoNeeded As OnDecryptionInfoNeededHandler

Public Delegate Sub OnDecryptionInfoNeededHandler(sender As Object, e As XmldecryptorDecryptionInfoNeededEventArgs)

Public Class XmldecryptorDecryptionInfoNeededEventArgs Inherits EventArgs
  Public Property CancelDecryption As Boolean
End Class

Remarks

This event is fired when the component needs decryption information (the private key) from the user.

Use EncryptKey, Config["KeyName"] and KeyEncryptionType properties to identify the encryption type and then set DecryptionKey or KeyDecryptionKey or KeyDecryptionCertificate properties accordingly.

if CancelDecryption property is set to true value (default value) then decryption would fail if provided key/certificate is invalid. Otherwise this event would be fired again.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 .NET Edition - Version 20.0 [Build 8165]