Class BlacklistEntry
java.lang.Object
org.deltava.beans.system.BlacklistEntry
A bean to store login/blacklist registration entries.
- Since:
- 9.0
- Version:
- 9.0
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether this blacklist entry contains a particular IP address.getCIDR()
Returns the CIDR block for the blacklist entry.Returns any blacklist comments.Returns the creation date of this entry.int
hashCode()
void
setComments
(String comments) Updates the blacklist entry comments.void
setCreated
(Instant dt) Updates the creation date of this blacklist entry.toString()
-
Constructor Details
-
BlacklistEntry
Creates the bean.- Parameters:
addr
- the base IP addressprefixLength
- the network prefix length in bits
-
-
Method Details
-
getCIDR
-
getCreated
Returns the creation date of this entry.- Returns:
- the creation date/time
-
getComments
-
contains
Returns whether this blacklist entry contains a particular IP address.- Parameters:
addr
- the IP address- Returns:
- TRUE if contained by this blacklist, otherwise FALSE
-
setCreated
Updates the creation date of this blacklist entry.- Parameters:
dt
- the creation date/time
-
setComments
Updates the blacklist entry comments.- Parameters:
comments
- the comments
-
hashCode
-
toString
-