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 Details

    • Factory

      public Factory()
  • Method Details

    • createSecurityContext

      public org.springframework.security.core.context.SecurityContext createSecurityContext(WithMockAuthentication annotation)
      Specified by:
      createSecurityContext in interface org.springframework.security.test.context.support.WithSecurityContextFactory<WithMockAuthentication>
    • authentication

      public org.springframework.security.core.Authentication authentication(WithMockAuthentication annotation)