[SecurityContext] Use SecurityContextInterface.
Merge pull request #1491 from aitboudad/patch-2

[SecurityContext] Use SecurityContextInterface.