Here;s a link to info from the University of Kentucky:
Canned Food Safty
It reads in part:
Canned food has a shelf life of at least two years from the
date of processing. Canned food retains its safety and
nutritional value well beyond two years, but it may have
some variation in quality, such as a change of color and
texture. Canning is a high-heat process that renders the
food commercially sterile. Food safety is not an issue in
products kept on the shelf or in the pantry for long
periods of time. In fact, canned food has an almost
indefinite shelf life at moderate temperatures (75° and
below). Canned food as old as 100 years has been found in
sunken ships and it is still microbiologically safe! We
don’t recommend keeping canned food for 100 year, but if
the can is intact, not dented or bulging, it is edible.