Asalaamualaykum : The antonym of shy is not confident. A person can be shy yet very confident as the word confidence always has to have an associated attribute.
Example Confident in public speaking, Confident in cooking etc etc. Shyness is a persona trait - Confidence is related to attributes. So I am not sure what you're really asking.