Class TestSecurityUtils

java.lang.Object
com.flowable.core.spring.security.test.TestSecurityUtils

public class TestSecurityUtils
extends java.lang.Object
A 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

    Modifier and Type Method Description
    static void resetTestAuthenticatedUser()  
    static void setTestAuthenticatedUser​(java.lang.String userId)  
    static void setTestAuthenticatedUser​(java.lang.String userId, java.lang.String tenantId)  
    static void setTestAuthenticatedUser​(java.lang.String userId, java.lang.String tenantId, java.lang.String... groupKeys)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait