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 boolean |
requireServletContext()
Security provider may need for its functionality also working servlet context.
|
default io.undertow.server.HttpHandler |
wrapHttpHandler(io.undertow.server.HttpHandler httpHandler)
SecurityProvider may change instance of undertow httpHandler during endpoint registration.
|
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)Exceptionint authenticate(io.undertow.server.HttpServerExchange httpExchange,
List<String> allowedRoles)
throws Exception
httpExchange - Undertow exchangeallowedRoles - List of allowed roles defined on endpoint.Exceptionboolean acceptConfiguration(Object configuration, String endpointUri) throws Exception
configuration - Object which contain connfiguration passed to camel-undertowendpointUri - Uri of endpoint (could be important for intialization)Exceptiondefault io.undertow.server.HttpHandler wrapHttpHandler(io.undertow.server.HttpHandler httpHandler)
throws Exception
httpHandler - Original httpHandlerExceptiondefault boolean requireServletContext()
Apache Camel