public class BlacklistBean extends BaseBean
_context, action, lastSerial, method, PROP_PW_ENABLE, properties, serial| Constructor and Description |
|---|
BlacklistBean()Blacklist bean for address blacklisting. |
| Modifier and Type | Method and Description |
|---|---|
int | addEntries(List<String> entries)Add entries to the blacklist |
String | getContent()Current blacklist content |
String | getFileName()Blacklist file path |
String | getMessages()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 addresspublic boolean isBlacklistedByAnyForm(String address)
address - the addresspublic boolean isHostnameBlacklisted(String hostname)
hostname - the hostnamepublic void setContent(String content)
content - the new blacklist content