Class AuthUtil
java.lang.Object
com.evolveum.midpoint.authentication.api.util.AuthUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
findAuthAttemptDataForModule
(ConnectionEnvironment connectionEnvironment, MidPointPrincipal principal) findAuthAttemptDataForModule
(ConnectionEnvironment connectionEnvironment, FocusType focus) findOrCreateAuthenticationAttemptDataFoModule
(ConnectionEnvironment connectionEnvironment, MidPointPrincipal principal) findOrCreateAuthenticationAttemptDataFoModule
(ConnectionEnvironment connectionEnvironment, FocusType focus) static String
generateBadCredentialsMessageKey
(org.springframework.security.core.Authentication authentication) static ModuleAuthentication
getBehavioralDataForSequence
(FocusType focus, String sequenceId) static @NotNull GuiProfiledPrincipal
static MidpointAuthentication
Convenient method to return instance of MidpointAuthentication if exists If not present, exception is thrown.static MidpointAuthentication
getMidpointAuthentication
(boolean required) static @Nullable MidpointAuthentication
static @Nullable MidPointPrincipal
getOrCreateBehavioralDataForSequence
(MidPointPrincipal principal, String sequenceId) getOrCreateBehavioralDataForSequence
(FocusType focus, String sequenceId) static @NotNull FocusType
static @NotNull ObjectReferenceType
static GuiProfiledPrincipal
static GuiProfiledPrincipal
getPrincipalUser
(org.springframework.security.core.Authentication authentication) static @NotNull ModuleAuthentication
static @Nullable ModuleAuthentication
static boolean
isClusterAuthentication
(MidpointAuthentication authentication) static boolean
isPostAuthenticationEnabled
(TaskManager taskManager, ModelInteractionService modelInteractionService) static String
resolveTokenTypeByModuleType
(String nameOfModuleType) static String
static String
static String
-
Constructor Details
-
AuthUtil
public AuthUtil()
-
-
Method Details
-
getMidpointPrincipal
-
getPrincipalObjectRequired
- Throws:
NotLoggedInException
-
getPrincipalRefRequired
@NotNull public static @NotNull ObjectReferenceType getPrincipalRefRequired() throws NotLoggedInException- Throws:
NotLoggedInException
-
getGuiProfiledPrincipalRequired
@NotNull public static @NotNull GuiProfiledPrincipal getGuiProfiledPrincipalRequired() throws NotLoggedInException- Throws:
NotLoggedInException
-
getPrincipalUser
-
getPrincipalUser
public static GuiProfiledPrincipal getPrincipalUser(org.springframework.security.core.Authentication authentication) -
isPostAuthenticationEnabled
public static boolean isPostAuthenticationEnabled(TaskManager taskManager, ModelInteractionService modelInteractionService) -
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 -
getMidpointAuthentication
-
getMidpointAuthenticationNotRequired
-
getAuthenticatedModule
-
getProcessingModuleIfExist
-
getProcessingModule
-
stripEndingSlashes
-
stripStartingSlashes
-
stripSlashes
-
resolveTokenTypeByModuleType
-
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) -
isClusterAuthentication
-