Class SecurityUtils
java.lang.Object
com.evolveum.midpoint.web.security.util.SecurityUtils
- Author:
- lazyman, lskublik
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
appendHiddenInputForCsrf
(org.apache.wicket.request.Response resp) static org.apache.wicket.markup.html.WebMarkupContainer
static com.evolveum.midpoint.authentication.api.config.CorrelationModuleAuthentication
findCorrelationModuleAuthentication
(PageAdminLTE pageAdminLTE) static ArchetypeSelectionModuleType
getArchetypeSelectionAuthModule
(SecurityPolicyType securityPolicy) static String
getAuthLinkUrl
(String sequenceIdentifier, SecurityPolicyType securityPolicy) static String
getChannelUrlSuffixFromAuthSequence
(String sequenceIdentifier, SecurityPolicyType securityPolicy) static org.springframework.security.web.csrf.CsrfToken
static String
getIdentityRecoveryLabel
(SecurityPolicyType securityPolicy) static String
getIdentityRecoveryUrl
(SecurityPolicyType securityPolicy) getPageAuthorizations
(Class<?> page) static String
getPasswordResetLabel
(SecurityPolicyType securityPolicy) static String
getPasswordResetUrl
(SecurityPolicyType securityPolicy) static String
getPathForLogoutWithContextPath
(String contextPath, @NotNull String prefix) static String
getRegistrationLabel
(SecurityPolicyType securityPolicy) static String
getRegistrationUrl
(SecurityPolicyType securityPolicy) Return URL of Registration page if it is available for public self registrationstatic String
getResetPasswordAuthenticationSequenceName
(SecurityPolicyType securityPolicyType) static AuthenticationSequenceType
getSequenceByIdentifier
(String identifier, AuthenticationsPolicyType authenticationPolicy) static AuthenticationSequenceType
getSequenceByName
(String name, AuthenticationsPolicyType authenticationPolicy) Deprecated.static boolean
static boolean
isMenuAuthorized
(MainMenuItem item) static boolean
isMenuAuthorized
(MenuItem item) static boolean
isPageAuthorized
(Class<?> page) static boolean
sequenceExists
(AuthenticationsPolicyType policy, String identifier)
-
Field Details
-
DEFAULT_LOGOUT_PATH
- See Also:
-
-
Constructor Details
-
SecurityUtils
public SecurityUtils()
-
-
Method Details
-
isPageAuthorized
-
getPageAuthorizations
-
createHiddenInputForCsrf
-
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
-
sequenceExists
-
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
Return URL of Registration page if it is available for public self registration- Parameters:
securityPolicy
-- Returns:
-
getRegistrationLabel
-
getIdentityRecoveryUrl
-
getIdentityRecoveryLabel
-
getPasswordResetUrl
-
getPasswordResetLabel
-
getResetPasswordAuthenticationSequenceName
public static String getResetPasswordAuthenticationSequenceName(SecurityPolicyType securityPolicyType) -
getAuthLinkUrl