SecureBlackbox 2020 Kotlin Edition

Questions / Feedback?

AuthAttempt Event

Fires when a connected client makes an authentication attempt.

Syntax

public open class DefaultWebsocketserverEventListener : WebsocketserverEventListener {
  ...
  public override fun authAttempt(e: WebsocketserverAuthAttemptEvent) {}
  ...
}

public class WebsocketserverAuthAttemptEvent {
  val connectionID: Long
  val username: String?
  val password: String?
  var allow: Boolean
}

Remarks

The component fires this event whenever a client attempts to authenticate itself. Use the Allow parameter to let the client through.

ConnectionID contains the unique session identifier for that client, and Username and Password contain the professed credentials.

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