Class SecurityUtils
- java.lang.Object
-
- com.evolveum.midpoint.web.security.util.SecurityUtils
-
public class SecurityUtils extends Object
- Author:
- lazyman, lskublik
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_LOGOUT_PATH
-
Constructor Summary
Constructors Constructor Description SecurityUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
appendHiddenInputForCsrf(org.apache.wicket.request.Response resp)
static org.apache.wicket.markup.html.WebMarkupContainer
createHiddenInputForCsrf(String id)
static org.springframework.security.web.csrf.CsrfToken
getCsrfToken()
static List<String>
getPageAuthorizations(Class<?> page)
static String
getPathForLogoutWithContextPath(String contextPath, @NotNull String prefix)
static AuthenticationSequenceType
getSequenceByName(String name, AuthenticationsPolicyType authenticationPolicy)
static boolean
isCollectionMenuAuthorized(MenuItem item)
static boolean
isMenuAuthorized(MainMenuItem item)
static boolean
isMenuAuthorized(MenuItem item)
static boolean
isPageAuthorized(Class<?> page)
-
-
-
Field Detail
-
DEFAULT_LOGOUT_PATH
public static final String DEFAULT_LOGOUT_PATH
- See Also:
- Constant Field Values
-
-
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)
-
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()
-
getSequenceByName
public static AuthenticationSequenceType getSequenceByName(String name, AuthenticationsPolicyType authenticationPolicy)
-
-