Class JwtCamelAutoConfiguration


  • @Configuration
    public class JwtCamelAutoConfiguration
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.security.access.AccessDecisionManager accessDecisionManager()  
      org.springframework.security.access.vote.AuthenticatedVoter authenticatedVoter()  
      <T> JwtAuthenticationProcessor jwtAuthenticationProcessor​(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)  
      org.apache.camel.component.spring.security.SpringSecurityAuthorizationPolicy validTokenAccessPolicy()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JwtCamelAutoConfiguration

        public JwtCamelAutoConfiguration()
    • Method Detail

      • validTokenAccessPolicy

        @Bean(name="validTokenAccessPolicy")
        public org.apache.camel.component.spring.security.SpringSecurityAuthorizationPolicy validTokenAccessPolicy()
      • accessDecisionManager

        protected org.springframework.security.access.AccessDecisionManager accessDecisionManager()
      • authenticatedVoter

        @Bean
        @ConditionalOnMissingBean(org.springframework.security.access.vote.AuthenticatedVoter.class)
        public org.springframework.security.access.vote.AuthenticatedVoter authenticatedVoter()
      • jwtAuthenticationProcessor

        @Bean
        @ConditionalOnMissingBean(JwtAuthenticationProcessor.class)
        @ConditionalOnProperty(name="entur.jwt.enabled",
                               havingValue="true",
                               matchIfMissing=false)
        public <T> JwtAuthenticationProcessor jwtAuthenticationProcessor​(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)