Class AbstractAnnotatedAuthenticationBuilder<A extends Annotation,T extends org.springframework.security.core.Authentication>
- java.lang.Object
-
- com.c4_soft.springaddons.security.oauth2.test.annotations.AbstractAnnotatedAuthenticationBuilder<A,T>
-
- All Implemented Interfaces:
org.springframework.security.test.context.support.WithSecurityContextFactory<A>
- Direct Known Subclasses:
WithMockJwtAuth.JwtAuthenticationTokenFactory,WithMockOidcAuth.OidcIdAuthenticationFactory
public abstract class AbstractAnnotatedAuthenticationBuilder<A extends Annotation,T extends org.springframework.security.core.Authentication> extends Object implements org.springframework.security.test.context.support.WithSecurityContextFactory<A>
-
-
Constructor Summary
Constructors Constructor Description AbstractAnnotatedAuthenticationBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Tauthentication(A annotation)Set<org.springframework.security.core.GrantedAuthority>authorities(String... authorities)org.springframework.security.core.context.SecurityContextcreateSecurityContext(A annotation)protected Tdowncast()OidcTokentoken(OpenIdClaims annotation)
-
-
-
Method Detail
-
createSecurityContext
public org.springframework.security.core.context.SecurityContext createSecurityContext(A annotation)
- Specified by:
createSecurityContextin interfaceorg.springframework.security.test.context.support.WithSecurityContextFactory<A extends Annotation>
-
authorities
public Set<org.springframework.security.core.GrantedAuthority> authorities(String... authorities)
-
token
public OidcToken token(OpenIdClaims annotation)
-
downcast
protected T downcast()
-
-