Update SecurityComponent and its test cases.