public class AuthorityScopeInterceptor
extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
CompoundServiceProvider
objects for display
See https
://wiki.surfnetlabs.nl/display/services/App-omschrijving| Modifier and Type | Field and Description |
|---|---|
static String |
OAUTH_CLIENT_SCOPE_ACTIONS
The OAuth 2.0 scope used for actions-related requests.
|
static String |
OAUTH_CLIENT_SCOPE_CROSS_IDP_SERVICES
The OAuth 2.0 scope used for requests that provide an IDP-id themselves, without need to rely on user authorization.
|
static String |
OAUTH_CLIENT_SCOPE_STATISTICS
The OAuth 2.0 scope used for requests that provide statistical information.
|
| Constructor and Description |
|---|
AuthorityScopeInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
containsRole(List<CoinAuthority.Authority> authorities,
CoinAuthority.Authority... authority) |
static boolean |
isDistributionChannelAdmin() |
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) |
protected void |
scopeGeneralAuthCons(org.springframework.ui.ModelMap map,
List<CoinAuthority.Authority> authorities,
javax.servlet.http.HttpServletRequest request) |
void |
setExposeTokenCheckInCookie(boolean exposeTokenCheckInCookie) |
public static final String OAUTH_CLIENT_SCOPE_ACTIONS
public static final String OAUTH_CLIENT_SCOPE_CROSS_IDP_SERVICES
public static final String OAUTH_CLIENT_SCOPE_STATISTICS
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.HandlerInterceptorAdapterExceptionprotected void scopeGeneralAuthCons(org.springframework.ui.ModelMap map,
List<CoinAuthority.Authority> authorities,
javax.servlet.http.HttpServletRequest request)
protected static boolean containsRole(List<CoinAuthority.Authority> authorities, CoinAuthority.Authority... authority)
public static boolean isDistributionChannelAdmin()
public void setExposeTokenCheckInCookie(boolean exposeTokenCheckInCookie)
Copyright © 2013 SURFnet bv, The Netherlands. All rights reserved.