addTempBan

open override fun addTempBan(addressPattern: String, duration: Duration, issuer: String?, reason: String?)

Temporarily adds a user to the banned list using a pattern algorithm defined by the AccessManager implementation. While active, isAddressAllowed should return false, and getAccess should return ACCESS_BANNED.

Parameters

addressPattern

A pattern to match to an address

duration

Duration this ban is valid from the time of addition

issuer

The admin who issued the ban

reason

The internal reason for the ban