public class AuthorityScopeInterceptor
extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
| Constructor and Description |
|---|
AuthorityScopeInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
containsRole(List<CoinAuthority.Authority> authorities,
CoinAuthority.Authority... authority) |
void |
postHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
org.springframework.web.servlet.ModelAndView modelAndView) |
boolean |
preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler) |
static List<nl.surfnet.coin.csa.model.Service> |
scopeListOfServices(List<nl.surfnet.coin.csa.model.Service> services)
Reduce list based on whether the SP 'is linked' to the current IdP.
|
protected void |
scopeService(nl.surfnet.coin.csa.model.Service service,
List<CoinAuthority.Authority> authorities) |
public boolean preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler)
throws Exception
preHandle in interface org.springframework.web.servlet.HandlerInterceptorpreHandle in class org.springframework.web.servlet.handler.HandlerInterceptorAdapterExceptionpublic void postHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
org.springframework.web.servlet.ModelAndView modelAndView)
throws Exception
postHandle in interface org.springframework.web.servlet.HandlerInterceptorpostHandle in class org.springframework.web.servlet.handler.HandlerInterceptorAdapterExceptionpublic static List<nl.surfnet.coin.csa.model.Service> scopeListOfServices(List<nl.surfnet.coin.csa.model.Service> services)
protected void scopeService(nl.surfnet.coin.csa.model.Service service,
List<CoinAuthority.Authority> authorities)
protected static boolean containsRole(List<CoinAuthority.Authority> authorities, CoinAuthority.Authority... authority)
Copyright © 2012–2014 SURFnet bv, The Netherlands. All rights reserved.