Hifikepunye Pohamba was sworn in Monday as the country 's second president since gaining independence from apartheid-era South Africa in 1990 .