Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AuthenticationConfigControl"/> class.
        /// </summary>
        public AuthenticationConfigControl()
        {
            InitializeComponent();
            InitializeProviderMap();

            AuthInitMethod aim = new AuthInitMethod();

            comboBox_InitiatorButton.Items.Clear();
            comboBox_InitiatorButton.DataSource = _initializationMethods;

            SignOutMethod signOutMethods = new SignOutMethod();

            comboBox_Unauthenticate.Items.Clear();
            comboBox_Unauthenticate.DataSource = signOutMethods.SignOutMethodValues;

            fieldValidator.RequireValue(comboBox_InitiatorButton, label_InitiatingButton);
            fieldValidator.RequireValue(comboBox_Unauthenticate, label_UnAuthenticateMethod);
            fieldValidator.RequireAssetSelection(assetSelectionControl, "device");

            comboBox_InitiatorButton.SelectedValueChanged += OnConfigurationChanged;
            comboBox_AuthMethod.SelectedValueChanged      += OnConfigurationChanged;
            comboBox_AuthProvider.SelectedValueChanged    += OnConfigurationChanged;

            lockTimeoutControl.ValueChanged              += OnConfigurationChanged;
            assetSelectionControl.SelectionChanged       += OnConfigurationChanged;
            comboBox_Unauthenticate.SelectedValueChanged += OnConfigurationChanged;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="OmniAuthenticatorDriver"/> class.
        /// </summary>
        /// <param name="device">The device.</param>
        /// <param name="solutionButton">The solution button.</param>
        /// <param name="maxWaitTime">The maximum wait time.</param>
        public SiriusUIv3AuthenticationDriver(SiriusUIv3Device device, string solutionButton, DeviceWorkflowLogger workflowLogger)
        {
            _device       = device;
            _controlPanel = device.ControlPanel;

            _preparationManager = new SiriusUIv3PreparationManager(_device);
            _solutionButton     = solutionButton;

            _initMethod = AuthInitMethod.GetInitiationMethod(solutionButton);

            PrepareDevice(workflowLogger);
        }
Esempio n. 3
0
        public WindjammerAuthenticatorDriver(JediWindjammerDevice device, string solutionButton, DeviceWorkflowLogger workflowLogger)
        {
            _device             = device;
            _preparationManager = new JediWindjammerPreparationManager(_device);
            _workflowLogger     = workflowLogger;

            _controlPanel = _device.ControlPanel;


            _solutionButton = solutionButton;
            _initMethod     = AuthInitMethod.GetInitiationMethod(_solutionButton);

            PrepareDevice();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="OmniAuthenticatorDriver"/> class.
        /// </summary>
        /// <param name="device">The device.</param>
        /// <param name="solutionButton">The solution button.</param>
        public OmniAuthenticatorDriver(JediOmniDevice device, string solutionButton, DeviceWorkflowLogger workflowLogger)
        {
            _omniDevice   = device;
            _controlPanel = device.ControlPanel;
            _launchHelper = new JediOmniLaunchHelper(device);
            _launchHelper.WorkflowLogger = workflowLogger;

            _preparationManager = new JediOmniPreparationManager(_omniDevice);
            _preparationManager.WorkflowLogger = workflowLogger;

            _solutionButton = solutionButton;
            _workflowLogger = workflowLogger;

            _initMethod = AuthInitMethod.GetInitiationMethod(solutionButton);

            PrepareDevice();
        }
Esempio n. 5
0
        private AuthenticationProvider GetAuthProvider(string buttonText)
        {
            InitiationMethod im = AuthInitMethod.GetInitiationMethod(buttonText);

            switch (im)
            {
            case InitiationMethod.HPAC:
                return(AuthenticationProvider.HpacIrm);

            case InitiationMethod.Equitrac:
                return(AuthenticationProvider.Equitrac);

            case InitiationMethod.SafeCom:
                return(AuthenticationProvider.SafeCom);

            case InitiationMethod.Badge:
                return(AuthenticationProvider.Card);

            default:
                return(AuthenticationProvider.Auto);
            }
        }