package net.sf.gazpachoquest.rest.filter;
import java.io.IOException;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerResponseContext;
import javax.ws.rs.container.ContainerResponseFilter;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
public class LogoutShiroFilter implements ContainerResponseFilter{
@Override
public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext)
throws IOException {
Subject subject = SecurityUtils.getSubject();
subject.logout();
}
}