Add contract to the security context.