示例#1
0
 public void Obfuscate(bool bObf)
 {
     if (bObf && (m_ioCredProtMode == IOCredProtMode.None))
     {
         m_strPassword    = StrUtil.Obfuscate(m_strPassword);
         m_ioCredProtMode = IOCredProtMode.Obf;
     }
     else if (!bObf && (m_ioCredProtMode == IOCredProtMode.Obf))
     {
         m_strPassword    = StrUtil.Deobfuscate(m_strPassword);
         m_ioCredProtMode = IOCredProtMode.None;
     }
 }
示例#2
0
        private void ObfuscateCred(bool bObf)
        {
            AceApplication aceApp = this.Application;             // m_aceApp might be null
            AceIntegration aceInt = this.Integration;             // m_int might be null

            if (aceApp.LastUsedFile == null)
            {
                Debug.Assert(false);
            }
            else
            {
                aceApp.LastUsedFile.Obfuscate(bObf);
            }

            foreach (IOConnectionInfo iocMru in aceApp.MostRecentlyUsed.Items)
            {
                if (iocMru == null)
                {
                    Debug.Assert(false);
                }
                else
                {
                    iocMru.Obfuscate(bObf);
                }
            }

            if (bObf)
            {
                aceInt.ProxyUserName = StrUtil.Obfuscate(aceInt.ProxyUserName);
            }
            else
            {
                aceInt.ProxyUserName = StrUtil.Deobfuscate(aceInt.ProxyUserName);
            }

            if (bObf)
            {
                aceInt.ProxyPassword = StrUtil.Obfuscate(aceInt.ProxyPassword);
            }
            else
            {
                aceInt.ProxyPassword = StrUtil.Deobfuscate(aceInt.ProxyPassword);
            }
        }
示例#3
0
        private void ObfuscateCred(bool bObf)
        {
            if (m_aceApp.LastUsedFile == null)
            {
                Debug.Assert(false);
            }
            else
            {
                m_aceApp.LastUsedFile.Obfuscate(bObf);
            }

            foreach (IOConnectionInfo iocMru in m_aceApp.MostRecentlyUsed.Items)
            {
                if (iocMru == null)
                {
                    Debug.Assert(false);
                }
                else
                {
                    iocMru.Obfuscate(bObf);
                }
            }

            if (bObf)
            {
                m_int.ProxyUserName = StrUtil.Obfuscate(m_int.ProxyUserName);
            }
            else
            {
                m_int.ProxyUserName = StrUtil.Deobfuscate(m_int.ProxyUserName);
            }

            if (bObf)
            {
                m_int.ProxyPassword = StrUtil.Obfuscate(m_int.ProxyPassword);
            }
            else
            {
                m_int.ProxyPassword = StrUtil.Deobfuscate(m_int.ProxyPassword);
            }
        }