Class 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.String AUTHORIZATION  
      static java.lang.String BEARER  
    • 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
      void process​(org.apache.camel.Exchange exchange)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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:
        process in interface JwtAuthenticationProcessor
        Specified by:
        process in interface org.apache.camel.Processor