Class SpringSecurityProvider

  • All Implemented Interfaces:
    org.apache.camel.component.undertow.spi.UndertowSecurityProvider

    public class SpringSecurityProvider
    extends Object
    implements org.apache.camel.component.undertow.spi.UndertowSecurityProvider
    • Field Detail

      • PRINCIPAL_NAME_HEADER

        public static final String PRINCIPAL_NAME_HEADER
    • Constructor Detail

      • SpringSecurityProvider

        public SpringSecurityProvider()
    • Method Detail

      • addHeader

        public void addHeader​(BiConsumer<String,​Object> consumer,
                              io.undertow.server.HttpServerExchange httpExchange)
                       throws Exception
        Specified by:
        addHeader in interface org.apache.camel.component.undertow.spi.UndertowSecurityProvider
        Throws:
        Exception
      • authenticate

        public int authenticate​(io.undertow.server.HttpServerExchange httpExchange,
                                List<String> allowedRoles)
                         throws Exception
        Specified by:
        authenticate in interface org.apache.camel.component.undertow.spi.UndertowSecurityProvider
        Throws:
        Exception
      • acceptConfiguration

        public boolean acceptConfiguration​(Object configuration,
                                           String endpointUri)
                                    throws Exception
        Specified by:
        acceptConfiguration in interface org.apache.camel.component.undertow.spi.UndertowSecurityProvider
        Throws:
        Exception
      • requireServletContext

        public boolean requireServletContext()
        Specified by:
        requireServletContext in interface org.apache.camel.component.undertow.spi.UndertowSecurityProvider