https://github.com/djoos/EscapeWSSEAuthenticationBundle/blob/2.2.2/Security/Http/Firewall/Listener.php#L62-L105
https://github.com/orocrm/platform/blob/2.2.0/src/Oro/Bundle/UserBundle/Security/WsseAuthProvider.php#L71-L103
https://github.com/orocrm/platform/blob/2.2.0/src/Oro/Bundle/UserBundle/Security/WsseAuthProvider.php#L105-L148
See also:
oro:wsse:generate-header