A - public interface WithSecurityContextFactory<A extends Annotation>
SecurityContext that is populated in the
TestSecurityContextHolder.WithSecurityContext,
WithMockUser,
WithUserDetails| Modifier and Type | Method and Description |
|---|---|
SecurityContext |
createSecurityContext(A annotation)
Create a
SecurityContext given an Annotation. |
SecurityContext createSecurityContext(A annotation)
SecurityContext given an Annotation.annotation - the Annotation to create the SecurityContext
from. Cannot be null.SecurityContext to use. Cannot be null.