The quotes are from Dmitry Medvedev, not Putin. But Medvedev is Putin’s close collaborator, so I would assume he speaks for him also.
Unfortunately, the Daily Mail isn’t making these quotes up, Medvedev really did say them.