public virtual void TestGetUserName() { PseudoAuthenticator authenticator = new PseudoAuthenticator(); Assert.Equal(Runtime.GetProperty("user.name"), authenticator.GetUserName ()); }
/// <summary> /// If the specified URL does not support SPNEGO authentication, a fallback /// <see cref="Authenticator"/> /// will be used. /// <p> /// This implementation returns a /// <see cref="PseudoAuthenticator"/> /// . /// </summary> /// <returns> /// the fallback /// <see cref="Authenticator"/> /// . /// </returns> protected internal virtual Authenticator GetFallBackAuthenticator() { Authenticator auth = new PseudoAuthenticator(); if (connConfigurator != null) { auth.SetConnectionConfigurator(connConfigurator); } return(auth); }