made to work on any adapter that provides setIdentity and setCredential