Beispiel #1
0
 protected override void DoConfigure(IConfigSectionNode node)
 {
     base.DoConfigure(node);
     m_Config          = node;
     m_PasswordManager = FactoryUtils.MakeAndConfigureComponent <IPasswordManagerImplementation>(
         App,
         node[CONFIG_PASSWORD_MANAGER_SECTION],
         typeof(DefaultPasswordManager));
 }
Beispiel #2
0
        protected override void DoConfigure(IConfigSectionNode node)
        {
            base.DoConfigure(node);
            m_Config = node;

            DisposeAndNull(ref m_Cryptography);
            m_Cryptography = FactoryUtils.MakeAndConfigureDirectedComponent <ICryptoManagerImplementation>(
                this,
                node[CONFIG_CRYPTOGRAPHY_SECTION],
                typeof(DefaultCryptoManager));

            DisposeAndNull(ref m_PasswordManager);
            m_PasswordManager = FactoryUtils.MakeAndConfigureDirectedComponent <IPasswordManagerImplementation>(
                this,
                node[CONFIG_PASSWORD_MANAGER_SECTION],
                typeof(DefaultPasswordManager));
        }
 void IRunnableHook.Prologue(Runner runner, FID id)
 {
     m_Manager = new DefaultPasswordManager(NOPApplication.Instance);
     m_Manager.Start();
 }
Beispiel #4
0
 public MD5PasswordHashingAlgorithm(IPasswordManagerImplementation director, string name) : base(director, name)
 {
     SaltMinLength = DEFAULT_SALT_MAX_LENGTH / 2;
     SaltMaxLength = DEFAULT_SALT_MAX_LENGTH;
 }
Beispiel #5
0
        public const int HASH_LENGTH_BYTES = 32;//HMAC-SHA256 = 256/8 = 32

        public PBKDF2PasswordHashingAlgorithm(IPasswordManagerImplementation director, string name) : base(director, name)
        {
        }
Beispiel #6
0
 public void Setup()
 {
     m_Manager = new DefaultPasswordManager();
     m_Manager.Start();
 }
Beispiel #7
0
 void IRunnableHook.Prologue(Runner runner, FID id)
 {
     m_Manager = new DefaultPasswordManager();
     m_Manager.Start();
 }