Exposed a new fromCredential() method