public class SpringSecurityProvider extends Object implements org.apache.camel.component.undertow.spi.UndertowSecurityProvider
Modifier and Type | Field and Description |
---|---|
static String |
PRINCIPAL_NAME_HEADER |
Constructor and Description |
---|
SpringSecurityProvider() |
Modifier and Type | Method and 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) |
io.undertow.Undertow |
registerHandler(io.undertow.Undertow.Builder builder,
io.undertow.server.HttpHandler handler) |
void |
unregisterHandler(io.undertow.Undertow undertow) |
public static final String PRINCIPAL_NAME_HEADER
public void addHeader(BiConsumer<String,Object> consumer, io.undertow.server.HttpServerExchange httpExchange) throws Exception
addHeader
in interface org.apache.camel.component.undertow.spi.UndertowSecurityProvider
Exception
public int authenticate(io.undertow.server.HttpServerExchange httpExchange, List<String> allowedRoles) throws Exception
authenticate
in interface org.apache.camel.component.undertow.spi.UndertowSecurityProvider
Exception
public boolean acceptConfiguration(Object configuration, String endpointUri) throws Exception
acceptConfiguration
in interface org.apache.camel.component.undertow.spi.UndertowSecurityProvider
Exception
public io.undertow.Undertow registerHandler(io.undertow.Undertow.Builder builder, io.undertow.server.HttpHandler handler) throws Exception
registerHandler
in interface org.apache.camel.component.undertow.spi.UndertowSecurityProvider
Exception
public void unregisterHandler(io.undertow.Undertow undertow)
unregisterHandler
in interface org.apache.camel.component.undertow.spi.UndertowSecurityProvider
Apache Camel