T
- The blacklist type.public interface Blacklist<T extends Blacklistable>
Modifier and Type | Interface and Description |
---|---|
static interface |
Blacklist.Listener |
Modifier and Type | Method and Description |
---|---|
void |
blacklist(T entry)
Blacklists the given entry until its expiry time.
|
boolean |
isBlacklisted(T entry)
Determines whether the entry has previously been blacklisted.
|
void |
subscribe(Blacklist.Listener listener)
Subscribe for notifications when entries are blacklisted.
|
void blacklist(T entry) throws BlacklistException
entry
- The blacklist entry.BlacklistException
- if the entry cannot be blacklisted for any reason.boolean isBlacklisted(T entry) throws BlacklistException
false
result does not mean the entry is valid. Further checks
should be made to establish entry validity.entry
- The entry to check for blacklisting.true
if the entry is currently blacklisted, or false
if the entry is not
blacklisted or has expired (and therefore been removed from the blacklist).BlacklistException
- if an error occurs when checking the blacklist.void subscribe(Blacklist.Listener listener)
listener
- the event listener to call when entries are blacklisted.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.