public class BlacklistBean extends BaseBean
_context, action, lastSerial, method, PROP_PW_ENABLE, properties, serial| Constructor and Description |
|---|
BlacklistBean() |
| Modifier and Type | Method and Description |
|---|---|
int |
addEntries(List<String> entries)
Add entries to the blacklist
|
String |
getContent()
Get the current blacklist content
|
String |
getFileName()
Get the blacklist file path
|
String |
getMessages()
Get status messages for the UI
|
boolean |
isB32Blacklisted(String b32)
Check if a b32 address is blacklisted (exact match or hostname match)
|
boolean |
isB64Blacklisted(String b64)
Check if a b64 address is blacklisted (exact match or hostname/b32 match)
|
boolean |
isBlacklisted(String address)
Check if an address is blacklisted
|
boolean |
isBlacklistedByAnyForm(String address)
Enhanced blacklist check that tries hostname, b32, and b64 variations
|
boolean |
isHostnameBlacklisted(String hostname)
Check if a hostname is blacklisted (exact match)
|
void |
setContent(String content)
Set the blacklist content
|
_t, _t, _t, addressbookDir, configFile, debug, getAction, getSerial, getTheme, getThemeName, getThemes, isOverrideCssActive, loadConfig, ngettext, reload, setAction, setSerial, storeMethod, useSoraFont, warnpublic int addEntries(List<String> entries)
entries - List of hostnames or addresses to add to the blacklistpublic String getContent()
public String getFileName()
public String getMessages()
public boolean isB32Blacklisted(String b32)
b32 - the b32 address to checkpublic boolean isB64Blacklisted(String b64)
b64 - the b64 address to checkpublic boolean isBlacklisted(String address)
address - the address to checkpublic boolean isBlacklistedByAnyForm(String address)
address - the address to check in any formpublic boolean isHostnameBlacklisted(String hostname)
hostname - the hostname to checkpublic void setContent(String content)
content - the new blacklist content