Revert "SHDP-353 Remove version 1 specific code"

This reverts commit 3969ec345f6249dc49f9f05c17f5fe56c2998cbc.
Revert "add security support"

This reverts commit a61ab3019fc248f4149c594981aa265e078c65d5.