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 MidpointAuthentication
getMidpointAuthentication()
Convenient method to return instance of MidpointAuthentication if exists If not present, exception is thrown.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)
-
getMidpointAuthentication
public static MidpointAuthentication getMidpointAuthentication()
Convenient method to return instance of MidpointAuthentication if exists If not present, exception is thrown. TODO: maybe we wll need to change exception to return null
-
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()
-
-