public class ConfigurableSessionBlacklist extends Object implements Blacklist<Session>
Blacklist.Listener
Modifier and Type | Method and Description |
---|---|
void |
blacklist(Session entry)
Blacklists the given entry until its expiry time.
|
static ConfigurableSessionBlacklist |
createConfigurableSessionBlacklist(CTSBlacklist<Session> ctsBlacklist,
SessionServiceConfig sessionServiceConfig)
Create a configurable session blacklist based on the session service config.
|
boolean |
isBlacklisted(Session entry)
Determines whether the entry has previously been blacklisted.
|
void |
subscribe(Blacklist.Listener listener)
Subscribe for notifications when entries are blacklisted.
|
public static ConfigurableSessionBlacklist createConfigurableSessionBlacklist(CTSBlacklist<Session> ctsBlacklist, SessionServiceConfig sessionServiceConfig)
ctsBlacklist
- The underlying CTS blacklist.sessionServiceConfig
- The configuration of the session service.public void blacklist(Session entry) throws BlacklistException
Blacklist
blacklist
in interface Blacklist<Session>
entry
- The blacklist entry.BlacklistException
- if the entry cannot be blacklisted for any reason.public boolean isBlacklisted(Session entry) throws BlacklistException
Blacklist
false
result does not mean the entry is valid. Further checks
should be made to establish entry validity.isBlacklisted
in interface Blacklist<Session>
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.public void subscribe(Blacklist.Listener listener)
Blacklist
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.