Interface WithSecurityContextFactory<A extends java.lang.annotation.Annotation>
-
- Type Parameters:
A
-
public interface WithSecurityContextFactory<A extends java.lang.annotation.Annotation>
An API that works with WithUserTestExcecutionListener for creating aSecurityContext
that is populated in theTestSecurityContextHolder
.- Since:
- 4.0
- See Also:
WithSecurityContext
,WithMockUser
,WithUserDetails
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SecurityContext
createSecurityContext(A annotation)
Create aSecurityContext
given an Annotation.
-
-
-
Method Detail
-
createSecurityContext
SecurityContext createSecurityContext(A annotation)
Create aSecurityContext
given an Annotation.- Parameters:
annotation
- theAnnotation
to create theSecurityContext
from. Cannot be null.- Returns:
- the
SecurityContext
to use. Cannot be null.
-
-