initial setup for creating shared methods between site_credential and shared_credential classes.