Interface WithSecurityContextFactory<A extends Annotation>
- Type Parameters:
A
-
public interface WithSecurityContextFactory<A extends Annotation>
An API that works with WithUserTestExcecutionListener for creating a
SecurityContext
that is populated in the TestSecurityContextHolder
.- Since:
- 4.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateSecurityContext
(A annotation) Create aSecurityContext
given an Annotation.
-
Method Details
-
createSecurityContext
Create aSecurityContext
given an Annotation.- Parameters:
annotation
- theAnnotation
to create theSecurityContext
from. Cannot be null.- Returns:
- the
SecurityContext
to use. Cannot be null.
-