Package com.jalios.jcms.security
Class Throttler.Action
- java.lang.Object
-
- com.jalios.jcms.security.Throttler.Action
-
- Enclosing class:
- Throttler
public static class Throttler.Action extends java.lang.ObjectClass used to track information about Action that might be throttled.
-
-
Constructor Summary
Constructors Constructor Description Action(java.lang.String userId, javax.servlet.http.HttpServletRequest request)Build a new action from specified param.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetIp()Return the remote IP of the user who performed this actionjava.time.ZonedDateTimegetTime()Return the time at which this action was performedjava.lang.StringgetUserId()Return the id of the user who performed this Actionjava.lang.StringtoString()
-
-
-
Constructor Detail
-
Action
public Action(java.lang.String userId, javax.servlet.http.HttpServletRequest request)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 Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getUserId
public java.lang.String 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
public java.lang.String getIp()
Return the remote IP of the user who performed this action- Returns:
- an IP (as returned by HttpServletRequest.getRemoteAddr()), might be null
-
getTime
public java.time.ZonedDateTime getTime()
Return the time at which this action was performed- Returns:
- a ZoneDateTime
-
-