Class AuthUtil
- java.lang.Object
-
- com.evolveum.midpoint.authentication.api.util.AuthUtil
-
public class AuthUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description AuthUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearMidpointAuthentication()
static ModuleAuthentication
getAuthenticatedModule()
static GuiProfiledPrincipal
getPrincipalUser()
static GuiProfiledPrincipal
getPrincipalUser(org.springframework.security.core.Authentication authentication)
static @NotNull ModuleAuthentication
getProcessingModule()
static @Nullable ModuleAuthentication
getProcessingModuleIfExist()
static boolean
isPostAuthenticationEnabled(TaskManager taskManager, ModelInteractionService modelInteractionService)
static String
resolveTokenTypeByModuleType(String nameOfModuleType)
static String
stripEndingSlashes(String s)
static String
stripSlashes(String s)
static String
stripStartingSlashes(String s)
-
-
-
Method Detail
-
getPrincipalUser
public static GuiProfiledPrincipal getPrincipalUser()
-
getPrincipalUser
public static GuiProfiledPrincipal getPrincipalUser(org.springframework.security.core.Authentication authentication)
-
isPostAuthenticationEnabled
public static boolean isPostAuthenticationEnabled(TaskManager taskManager, ModelInteractionService modelInteractionService)
-
getAuthenticatedModule
public static ModuleAuthentication getAuthenticatedModule()
-
getProcessingModuleIfExist
@Nullable public static @Nullable ModuleAuthentication getProcessingModuleIfExist()
-
getProcessingModule
@NotNull public static @NotNull ModuleAuthentication getProcessingModule()
-
resolveTokenTypeByModuleType
public static String resolveTokenTypeByModuleType(String nameOfModuleType)
-
clearMidpointAuthentication
public static void clearMidpointAuthentication()
-
-