Package com.jalios.jcms.security
Class Throttler.Action
java.lang.Object
com.jalios.jcms.security.Throttler.Action
- Enclosing class:
Throttler
Class used to track information about Action that might be throttled.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
userId
-
ip
-
time
-
-
Constructor Details
-
Action
Build a new action from specified param.- Parameters:
userId- a unique and constant identifier used to track the User/Member for which authentication failedrequest- the HttpServletRequest which triggered this action (optional but highly recommended)
-
-
Method Details
-
toString
-
getUserId
Return the id of the user who performed this Action- Returns:
- a unique and constant identifier used to track the User/Member for which authentication failed
-
getIp
Return the remote IP of the user who performed this action- Returns:
- an IP (as returned by HttpServletRequest.getRemoteAddr()), might be null
-
getTime
Return the time at which this action was performed- Returns:
- a ZoneDateTime
-