Class TestSecurityUtils
- java.lang.Object
-
- com.flowable.core.spring.security.test.TestSecurityUtils
-
public class TestSecurityUtils extends java.lang.ObjectA utility class that can be used when writing tests. Do not use this for other purposes than tests, as it will set a non-persisted user as the threadlocal for the Spring Security context.- Author:
- Joram Barrez
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidresetTestAuthenticatedUser()static voidsetTestAuthenticatedUser(java.lang.String userId)static voidsetTestAuthenticatedUser(java.lang.String userId, java.lang.String tenantId)static voidsetTestAuthenticatedUser(java.lang.String userId, java.lang.String tenantId, java.lang.String... groupKeys)
-
-
-
Method Detail
-
setTestAuthenticatedUser
public static void setTestAuthenticatedUser(java.lang.String userId, java.lang.String tenantId)
-
setTestAuthenticatedUser
public static void setTestAuthenticatedUser(java.lang.String userId, java.lang.String tenantId, java.lang.String... groupKeys)
-
setTestAuthenticatedUser
public static void setTestAuthenticatedUser(java.lang.String userId)
-
resetTestAuthenticatedUser
public static void resetTestAuthenticatedUser()
-
-