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 final class WithMockAuthentication.Factory
extends Object
implements org.springframework.security.test.context.support.WithSecurityContextFactory<WithMockAuthentication>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationauthentication(WithMockAuthentication annotation) org.springframework.security.core.context.SecurityContextcreateSecurityContext(WithMockAuthentication annotation)
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
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)
-