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 StringDEFAULT_LOGOUT_PATH 
- 
Constructor Summary
Constructors Constructor Description SecurityUtils() 
- 
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidappendHiddenInputForCsrf(org.apache.wicket.request.Response resp)static org.apache.wicket.markup.html.WebMarkupContainercreateHiddenInputForCsrf(String id)static org.springframework.security.web.csrf.CsrfTokengetCsrfToken()static List<String>getPageAuthorizations(Class<?> page)static StringgetPathForLogoutWithContextPath(String contextPath, @NotNull String prefix)static AuthenticationSequenceTypegetSequenceByIdentifier(String identifier, AuthenticationsPolicyType authenticationPolicy)static AuthenticationSequenceTypegetSequenceByName(String name, AuthenticationsPolicyType authenticationPolicy)Deprecated.static booleanisCollectionMenuAuthorized(MenuItem item)static booleanisMenuAuthorized(MainMenuItem item)static booleanisMenuAuthorized(MenuItem item)static booleanisPageAuthorized(Class<?> page)static booleansequenceExists(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)
 
 - 
 
 -