Created API for a credential factory.