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
-
-
-
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()
-
findAuthAttemptDataForModule
public static AuthenticationAttemptDataType findAuthAttemptDataForModule(ConnectionEnvironment connectionEnvironment, MidPointPrincipal principal)
-
findAuthAttemptDataForModule
public static AuthenticationAttemptDataType findAuthAttemptDataForModule(ConnectionEnvironment connectionEnvironment, FocusType focus)
-
getOrCreateBehavioralDataForSequence
public static AuthenticationBehavioralDataType getOrCreateBehavioralDataForSequence(MidPointPrincipal principal, String sequenceId)
-
getBehavioralDataForSequence
public static AuthenticationBehavioralDataType getBehavioralDataForSequence(FocusType focus, String sequenceId)
-
getOrCreateBehavioralDataForSequence
public static AuthenticationBehavioralDataType getOrCreateBehavioralDataForSequence(FocusType focus, String sequenceId)
-
findOrCreateAuthenticationAttemptDataFoModule
public static AuthenticationAttemptDataType findOrCreateAuthenticationAttemptDataFoModule(ConnectionEnvironment connectionEnvironment, MidPointPrincipal principal)
-
findOrCreateAuthenticationAttemptDataFoModule
public static AuthenticationAttemptDataType findOrCreateAuthenticationAttemptDataFoModule(ConnectionEnvironment connectionEnvironment, FocusType focus)
-
generateBadCredentialsMessageKey
public static String generateBadCredentialsMessageKey(org.springframework.security.core.Authentication authentication)
-
-