Class SpringSecurityProvider
- java.lang.Object
-
- org.apache.camel.component.spring.security.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 Summary
Fields Modifier and Type Field Description static String
PRINCIPAL_NAME_HEADER
-
Constructor Summary
Constructors Constructor Description SpringSecurityProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptConfiguration(Object configuration, String endpointUri)
void
addHeader(BiConsumer<String,Object> consumer, io.undertow.server.HttpServerExchange httpExchange)
int
authenticate(io.undertow.server.HttpServerExchange httpExchange, List<String> allowedRoles)
boolean
requireServletContext()
-
-
-
Field Detail
-
PRINCIPAL_NAME_HEADER
public static final String PRINCIPAL_NAME_HEADER
-
-
Method Detail
-
addHeader
public void addHeader(BiConsumer<String,Object> consumer, io.undertow.server.HttpServerExchange httpExchange) throws Exception
- Specified by:
addHeader
in interfaceorg.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 interfaceorg.apache.camel.component.undertow.spi.UndertowSecurityProvider
- Throws:
Exception
-
acceptConfiguration
public boolean acceptConfiguration(Object configuration, String endpointUri) throws Exception
- Specified by:
acceptConfiguration
in interfaceorg.apache.camel.component.undertow.spi.UndertowSecurityProvider
- Throws:
Exception
-
requireServletContext
public boolean requireServletContext()
- Specified by:
requireServletContext
in interfaceorg.apache.camel.component.undertow.spi.UndertowSecurityProvider
-
-