restore deleted methods in SessionAuthentication

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2022-11-01 12:05:53 +11:00
parent c60f38f387
commit a4185bf5ac
1 changed files with 15 additions and 0 deletions

View File

@ -19,6 +19,7 @@ import java.io.Serializable;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionActivationListener;
import javax.servlet.http.HttpSessionBindingListener;
import javax.servlet.http.HttpSessionEvent;
import org.eclipse.jetty.security.AbstractUserAuthentication;
import org.eclipse.jetty.security.Authenticator;
@ -99,4 +100,18 @@ public class SessionAuthentication extends AbstractUserAuthentication
{
return String.format("%s@%x{%s,%s}", this.getClass().getSimpleName(), hashCode(), _session == null ? "-" : _session.getId(), _userIdentity);
}
@Override
public void sessionWillPassivate(HttpSessionEvent se)
{
}
@Override
public void sessionDidActivate(HttpSessionEvent se)
{
if (_session == null)
{
_session = se.getSession();
}
}
}