Class WithMockOidcId.Factory
- java.lang.Object
-
- com.c4_soft.springaddons.security.oauth2.test.annotations.OidcIdAuthenticationTokenTestingBuilder
-
- com.c4_soft.springaddons.security.oauth2.test.annotations.WithMockOidcId.Factory
-
- All Implemented Interfaces:
AuthenticationBuilder,org.springframework.security.test.context.support.WithSecurityContextFactory<WithMockOidcId>
- Enclosing class:
- WithMockOidcId
public static final class WithMockOidcId.Factory extends OidcIdAuthenticationTokenTestingBuilder implements org.springframework.security.test.context.support.WithSecurityContextFactory<WithMockOidcId>
-
-
Field Summary
-
Fields inherited from class com.c4_soft.springaddons.security.oauth2.test.annotations.OidcIdAuthenticationTokenTestingBuilder
tokenBuilder
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OidcIdAuthenticationTokenauthentication(WithMockOidcId annotation)static OidcIdBuilder.AddressClaimbuild(WithAddress addressAnnotation)org.springframework.security.core.context.SecurityContextcreateSecurityContext(WithMockOidcId annotation)-
Methods inherited from class com.c4_soft.springaddons.security.oauth2.test.annotations.OidcIdAuthenticationTokenTestingBuilder
authorities, build, downcast, token
-
-
-
-
Method Detail
-
createSecurityContext
public org.springframework.security.core.context.SecurityContext createSecurityContext(WithMockOidcId annotation)
- Specified by:
createSecurityContextin interfaceorg.springframework.security.test.context.support.WithSecurityContextFactory<WithMockOidcId>
-
authentication
public OidcIdAuthenticationToken authentication(WithMockOidcId annotation) throws MalformedURLException
- Throws:
MalformedURLException
-
build
public static OidcIdBuilder.AddressClaim build(WithAddress addressAnnotation)
-
-