95% chance of clearing the virus from your body within
six months
of infection. Also if you have been vaccinated against hbv before, that would protect you from infection. Next time this happens to you, you've to wash your hands thoroughly with soap, and may also use disinfectant to sanitise your hands.
If the matter keeps bothering you, you could just take an easy hbv test with your doctor. Good luck.