def _setAuthCred():
 if (kb.passwordMgr and all(((_ is not None) for _ in (conf.scheme, conf.hostname, conf.port, conf.authUsername, conf.authPassword)))):
  kb.passwordMgr.add_password(None, ('%s://%s:%d' % (conf.scheme, conf.hostname, conf.port)), conf.authUsername, conf.authPassword)

def _setAuthCred ( ) : if ( kb . passwordMgr and all ( ( ( _ is not None ) for _ in ( conf . scheme , conf . hostname , conf . port , conf . authUsername , conf . authPassword ) ) ) ) : kb . passwordMgr . add_password ( None , ( '%s://%s:%d' % ( conf . scheme , conf . hostname , conf . port ) ) , conf . authUsername , conf . authPassword )
adds authentication credentials for current target to the password manager .