INNER CODE UNIT · Java
beforeRequireAllRoles
pac4j/spring-webmvc-pac4j · src/main/java/org/pac4j/springframework/annotation/RequireRoleAnnotationAspect.java:74
public void beforeRequireAllRoles(final RequireAllRoles requireAllRoles) {
val profiles = isAuthenticated();
val authorizer = new RequireAllRolesAuthorizer(requireAllRoles.value());
if (!authorizer.isAuthorized(webContext, sessionStore, profiles)) {
throw new ForbiddenAction();
}
}
}