Class SecurityUtils


  • public class SecurityUtils
    extends Object
    Author:
    lazyman, lskublik
    • Constructor Detail

      • SecurityUtils

        public SecurityUtils()
    • Method Detail

      • isMenuAuthorized

        public static boolean isMenuAuthorized​(MainMenuItem item)
      • isMenuAuthorized

        public static boolean isMenuAuthorized​(MenuItem item)
      • isCollectionMenuAuthorized

        public static boolean isCollectionMenuAuthorized​(MenuItem item)
      • isPageAuthorized

        public static boolean isPageAuthorized​(Class<?> page)
      • getPageAuthorizations

        public static List<String> getPageAuthorizations​(Class<?> page)
      • createHiddenInputForCsrf

        public static org.apache.wicket.markup.html.WebMarkupContainer createHiddenInputForCsrf​(String id)
      • appendHiddenInputForCsrf

        public static void appendHiddenInputForCsrf​(org.apache.wicket.request.Response resp)
      • getCsrfToken

        public static org.springframework.security.web.csrf.CsrfToken getCsrfToken()
      • getPathForLogoutWithContextPath

        public static String getPathForLogoutWithContextPath​(String contextPath,
                                                             @NotNull
                                                             @NotNull String prefix)