Legendary goalkeeper Gianluigi Buffon intends to bring down the curtain on his footballing career in two years' time at the age 40.