public string ToString() { if (password == null) { return(null); } return(Crypto.Deobfuscate(password)); }
/// <summary> /// Connect to a CMIS server and get the list of repositories. /// This method takes a obfuscated password, unlike the next method. /// </summary> public static IList <IRepository> GetCmisRepositories(Uri url, string user, string obfuscatedPassword) { Dictionary <string, string> parameters = GetParameters(); parameters[SessionParameter.AtomPubUrl] = url.ToString(); parameters[SessionParameter.User] = user; parameters[SessionParameter.Password] = Crypto.Deobfuscate(obfuscatedPassword); // Create session factory. SessionFactory factory = SessionFactory.NewInstance(); // Return repositories. return(factory.GetRepositories(parameters)); }