Class WithMockAuthentication.Factory
- java.lang.Object
-
- com.c4_soft.springaddons.security.oauth2.test.annotations.WithMockAuthentication.Factory
-
- All Implemented Interfaces:
org.springframework.security.test.context.support.WithSecurityContextFactory<WithMockAuthentication>
- Enclosing class:
- WithMockAuthentication
public static class WithMockAuthentication.Factory extends Object implements org.springframework.security.test.context.support.WithSecurityContextFactory<WithMockAuthentication>
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authenticationauthentication(WithMockAuthentication annotation)org.springframework.security.core.context.SecurityContextcreateSecurityContext(WithMockAuthentication annotation)
-
-
-
Method Detail
-
createSecurityContext
public org.springframework.security.core.context.SecurityContext createSecurityContext(WithMockAuthentication annotation)
- Specified by:
createSecurityContextin interfaceorg.springframework.security.test.context.support.WithSecurityContextFactory<WithMockAuthentication>
-
authentication
public org.springframework.security.core.Authentication authentication(WithMockAuthentication annotation)
-
-