Review security providers API

Replace encode/decode by serialize/deserialize and add missing verify
method.
Add decode/encode methods to security providers API
Implement verify method for none security provider