Package com.groiss.org
Interface IPChangeListener
public interface IPChangeListener
Called when a change of the IP address in the session is detected.
Can be used to "reattach" a session to a new IP.
Must be implemented by the AuthClass.
If ipChanged returns true, the sessions IP is updated with the current one; if it returns false or an exception is thrown, the session is invalidated and
ApplicationException 466 will be thrown.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
ipChanged
(HttpServletRequest req, HttpServletResponse res, String remoteAddress, String storedAddress, Principal principal) Called when remote IP address changed and "ep.check.ip" is activated.
-
Method Details
-
ipChanged
boolean ipChanged(HttpServletRequest req, HttpServletResponse res, String remoteAddress, String storedAddress, Principal principal) throws Exception Called when remote IP address changed and "ep.check.ip" is activated.- Parameters:
req
- the requestres
- the responseremoteAddress
- the current remote addressstoredAddress
- the remote address as stored in the HttpSessionprincipal
- the current principal- Returns:
- true, if the ipChange is to be treated as legitimate, false else.
- Throws:
Exception
-