Class Nanite::SecureSerializer
In: lib/nanite/security/secure_serializer.rb
Parent: Object

Serializer implementation which secures messages by using X.509 certificate sigining.

Methods

dump   init   initialized?   load  

Public Class methods

Serialize message and sign it using X.509 certificate

Initialize serializer, must be called prior to using it.

 - 'identity':   Identity associated with serialized messages
 - 'cert':       Certificate used to sign and decrypt serialized messages
 - 'key':        Private key corresponding to 'cert'
 - 'store':      Certificate store. Exposes certificates used for
                 encryption and signature validation.
 - 'encrypt':    Whether data should be signed and encrypted ('true')
                 or just signed ('false'), 'true' by default.

Unserialize data using certificate store

[Validate]