security: Fix the compile problem caused by an API change of ValidatorConfig.

Refs: #1481

Change-Id: Iea5cb1e13b509d570d8eb6b05ccb3fd6d7816bbc