Package org.entur.jwt.spring.camel
Class DefaultJwtAuthenticationProcessor
- java.lang.Object
-
- org.entur.jwt.spring.camel.DefaultJwtAuthenticationProcessor
-
- All Implemented Interfaces:
org.apache.camel.Processor,JwtAuthenticationProcessor
public class DefaultJwtAuthenticationProcessor extends java.lang.Object implements JwtAuthenticationProcessor
A Processor which, if present, extracts the Json Web Token from the message HttpServletRequest Authorization header and saves it to the message Exchange.AUTHENTICATION. If not present, an anonymous authentication object is used.
This implementation assumes that SpringSecurityAuthorizationPolicy#setUseThreadSecurityContext is used to disable thread local authentication.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAUTHORIZATIONstatic java.lang.StringBEARER
-
Constructor Summary
Constructors Constructor Description DefaultJwtAuthenticationProcessor(org.entur.jwt.verifier.JwtVerifier<T> verifier, org.entur.jwt.spring.filter.JwtAuthorityMapper<T> authorityMapper, org.entur.jwt.verifier.JwtClaimExtractor<T> extractor, org.entur.jwt.spring.filter.JwtPrincipalMapper jwtPrincipalMapper, org.entur.jwt.spring.filter.JwtDetailsMapper detailsMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(org.apache.camel.Exchange exchange)
-
-
-
Field Detail
-
AUTHORIZATION
public static final java.lang.String AUTHORIZATION
- See Also:
- Constant Field Values
-
BEARER
public static final java.lang.String BEARER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultJwtAuthenticationProcessor
public DefaultJwtAuthenticationProcessor(org.entur.jwt.verifier.JwtVerifier<T> verifier, org.entur.jwt.spring.filter.JwtAuthorityMapper<T> authorityMapper, org.entur.jwt.verifier.JwtClaimExtractor<T> extractor, org.entur.jwt.spring.filter.JwtPrincipalMapper jwtPrincipalMapper, org.entur.jwt.spring.filter.JwtDetailsMapper detailsMapper)
-
-
Method Detail
-
process
public void process(org.apache.camel.Exchange exchange)
- Specified by:
processin interfaceJwtAuthenticationProcessor- Specified by:
processin interfaceorg.apache.camel.Processor
-
-