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 Deprecated 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
getSequenceByIdentifier(String identifier, AuthenticationsPolicyType authenticationPolicy)
static AuthenticationSequenceType
getSequenceByName(String name, AuthenticationsPolicyType authenticationPolicy)
Deprecated.static boolean
isCollectionMenuAuthorized(MenuItem item)
static boolean
isMenuAuthorized(MainMenuItem item)
static boolean
isMenuAuthorized(MenuItem item)
static boolean
isPageAuthorized(Class<?> page)
static boolean
sequenceExists(AuthenticationsPolicyType policy, String identifier)
-
-
-
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
@Deprecated public static AuthenticationSequenceType getSequenceByName(String name, AuthenticationsPolicyType authenticationPolicy)
Deprecated.name attribute is deprecated, getSequenceByIdentifier should be used instead- Parameters:
name
-authenticationPolicy
-- Returns:
-
getSequenceByIdentifier
public static AuthenticationSequenceType getSequenceByIdentifier(String identifier, AuthenticationsPolicyType authenticationPolicy)
-
getPathForLogoutWithContextPath
public static String getPathForLogoutWithContextPath(String contextPath, @NotNull @NotNull String prefix)
-
sequenceExists
public static boolean sequenceExists(AuthenticationsPolicyType policy, String identifier)
-
-