I introduced GoogleCredentials inheriting from Credentials and made OAuth2Credentials inherit from GoogleCredentials. As AssertionCredentials inherits from OAuth2Credentials, we should be good.