Class Throttler.Action

java.lang.Object
com.jalios.jcms.security.Throttler.Action
Enclosing class:
Throttler

public static class Throttler.Action extends Object
Class used to track information about Action that might be throttled.
  • Field Details

  • Constructor Details

    • Action

      public Action(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 failed
      request - the HttpServletRequest which triggered this action (optional but highly recommended)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getUserId

      public 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 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 ZonedDateTime getTime()
      Return the time at which this action was performed
      Returns:
      a ZoneDateTime