SecureBlackbox 2020 .NET Edition

Questions / Feedback?

PasswordNeeded Event

Requests a password from the application.

Syntax

public event OnPasswordNeededHandler OnPasswordNeeded;

public delegate void OnPasswordNeededHandler(object sender, DcauthwebserverPasswordNeededEventArgs e);

public class DcauthwebserverPasswordNeededEventArgs : EventArgs {
  public string NeededFor { get; }
  public string Id { get; }
  public string Password { get; set; }
  public bool Cancel { get; set; }
}
Public Event OnPasswordNeeded As OnPasswordNeededHandler

Public Delegate Sub OnPasswordNeededHandler(sender As Object, e As DcauthwebserverPasswordNeededEventArgs)

Public Class DcauthwebserverPasswordNeededEventArgs Inherits EventArgs
  Public ReadOnly Property NeededFor As String
  Public ReadOnly Property Id As String
  Public Property Password As String
  Public Property Cancel As Boolean
End Class

Remarks

Subscribe to this event to pass a password to the server component. The NeededFor parameter specifies the entity a password for which is being requested (which is typically a certificate). The Id parameter provides the entity's identifier, such as a path to the certificate being loaded. When handling this event, assign the Password to the valid password if you have it; otherwise, set Cancel to true to abort the operation.

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