SPI interface. Camel-undertow component will locate all available providers and will use first of then which
returns true in method acceptConfiguration.
To implement this interface you have to advertise SPI class of type UndertowSecurityProvider.
Instance of that provider is initialized by call of acceptConfiguration and then will be used to authenticate requests.
int authenticate(io.undertow.server.HttpServerExchange httpExchange,
Method to handle incoming request for security purposes. Method returns status code with result (typically 200 if request is authenticated,
403 if not, some security provider needs to return more specific codes)
httpExchange - Undertow exchange
allowedRoles - List of allowed roles defined on endpoint.
Status code 200 if, request is authorized, other code if not.
Initialization of securityProvider from configuration.
Object passed to camel-undertow as 'securityConfiguration' should be tested here, if it is meant for this
securityProvider and provider should initialize its state from it.
If configuration is not acceptable, return false.
configuration - Object which contain connfiguration passed to camel-undertow
endpointUri - Uri of endpoint (could be important for intialization)
True if securityProvider is initialized from data and is able to authenticate requests.