CDI extension DeltaSpike allows to create custom @SecurityParameterBinding types.
These types allows to inject parameters values from the method invocation to authorizer bean. (See documentation of Deltaspike/Security Module).
When I create my own security parameter
...then I can secure some methods, but these methods must have appropriate input parameter with correct type and with the annotation
Methods doSomething 2 and 3 cause an exception "SecurityDefinitionException: No matching authorizer found for security". Validator doesn't detect any problems.
The attached project can be use to reproduce this issue securityParameterBinding.zip.