move pam helper class to core namespace