Refined some old interface files and added new security interfaces.

(cherry picked from commit f2be1cb18c2a1079cb84c637595e3573362b143c)