public interface UndertowSecurityProvider
Modifier and Type | Method and Description |
---|---|
boolean |
acceptConfiguration(Object configuration,
String endpointUri)
Initialization of securityProvider from configuration.
|
void |
addHeader(BiConsumer<String,Object> consumer,
io.undertow.server.HttpServerExchange httpExchange)
Provider can add headers into Camel's exchange.
|
int |
authenticate(io.undertow.server.HttpServerExchange httpExchange,
List<String> allowedRoles)
Method to handle incoming request for security purposes.
|
default io.undertow.Undertow |
registerHandler(io.undertow.Undertow.Builder builder,
io.undertow.server.HttpHandler handler)
Hook into creation of undertow server.
|
default void |
unregisterHandler(io.undertow.Undertow undertow)
In case that registration has to be unregistered, this method should be used.
|
void addHeader(BiConsumer<String,Object> consumer, io.undertow.server.HttpServerExchange httpExchange) throws Exception
consumer
- BiConsumer is the only way how to add parameter into exchange (it accepts pair String, Object)httpExchange
- Undertow exchange (could contain information from security provider)Exception
int authenticate(io.undertow.server.HttpServerExchange httpExchange, List<String> allowedRoles) throws Exception
httpExchange
- Undertow exchangeallowedRoles
- List of allowed roles defined on endpoint.Exception
boolean acceptConfiguration(Object configuration, String endpointUri) throws Exception
configuration
- Object which contain connfiguration passed to camel-undertowendpointUri
- Uri of endpoint (could be important for intialization)Exception
default io.undertow.Undertow registerHandler(io.undertow.Undertow.Builder builder, io.undertow.server.HttpHandler handler) throws Exception
builder
- Builder of undertow server.handler
- Root http handler to be used in undertow serverException
default void unregisterHandler(io.undertow.Undertow undertow)
Apache Camel