Class SecurityUtils

java.lang.Object
com.evolveum.midpoint.web.security.util.SecurityUtils

public class SecurityUtils extends Object
Author:
lazyman, lskublik
  • Field Details

  • Constructor Details

    • SecurityUtils

      public SecurityUtils()
  • Method Details

    • 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()
    • 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)
    • getChannelUrlSuffixFromAuthSequence

      public static String getChannelUrlSuffixFromAuthSequence(String sequenceIdentifier, SecurityPolicyType securityPolicy)
    • getArchetypeSelectionAuthModule

      public static ArchetypeSelectionModuleType getArchetypeSelectionAuthModule(SecurityPolicyType securityPolicy)
    • findCorrelationModuleAuthentication

      public static com.evolveum.midpoint.authentication.api.config.CorrelationModuleAuthentication findCorrelationModuleAuthentication(PageAdminLTE pageAdminLTE)
    • getRegistrationUrl

      public static String getRegistrationUrl(SecurityPolicyType securityPolicy)
      Return URL of Registration page if it is available for public self registration
      Parameters:
      securityPolicy -
      Returns:
    • getRegistrationLabel

      public static String getRegistrationLabel(SecurityPolicyType securityPolicy)
    • getIdentityRecoveryUrl

      public static String getIdentityRecoveryUrl(SecurityPolicyType securityPolicy)
    • getIdentityRecoveryLabel

      public static String getIdentityRecoveryLabel(SecurityPolicyType securityPolicy)
    • getPasswordResetUrl

      public static String getPasswordResetUrl(SecurityPolicyType securityPolicy)
    • getPasswordResetLabel

      public static String getPasswordResetLabel(SecurityPolicyType securityPolicy)
    • getResetPasswordAuthenticationSequenceName

      public static String getResetPasswordAuthenticationSequenceName(SecurityPolicyType securityPolicyType)
    • getAuthLinkUrl

      public static String getAuthLinkUrl(String sequenceIdentifier, SecurityPolicyType securityPolicy)