Example #1
0
        /// <summary>
        /// Requests the credentials for a specific connection
        /// </summary>
        /// <param name="remoteAddress">the remote address</param>
        /// <param name="userName">the userName</param>
        /// <param name="password">the password</param>
        public void GetCredentials(string remoteAddress, out string userName, out string password)
        {
            userName = this.userName;
            password = this.password;
#if (NET47 || NET461)
            if (useSecurity)
            {
                password = PasswordSecurity.ToInsecureString(PasswordSecurity.DecryptString(password));
            }
#endif
        }