/// <summary>
 /// Constructor
 /// </summary>
 /// <param name="dpsAPi">The DPS API to use</param>
 /// <param name="authenticationData">AuthenticationConfigurationData configuration</param>
 public AuthenticationMethodProviderFromDPS(IDpsApi dpsAPi, AuthenticationData authenticationData) : base(authenticationData)
 {
     _dpsApi = dpsAPi;
 }
Exemple #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="authenticationData">AuthenticationConfigurationData configuration</param>
 public AuthenticationMethodProviderFromModule(AuthenticationData authenticationData) : base(authenticationData)
 {
 }
Exemple #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="deviceAPi">The device API to use</param>
 /// <param name="authenticationData">AuthenticationConfigurationData configuration</param>
 public AuthenticationMethodProviderFromDevice(IDeviceApi deviceAPi, AuthenticationData authenticationData) : base(authenticationData)
 {
     _deviceAPi = deviceAPi;
 }
Exemple #4
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="authenticationData">AuthenticationConfigurationData configuration</param>
        public AuthenticationMethodProviderFromDevice(AuthenticationData authenticationData) : base(authenticationData)
        {
            RestClient restClient = RestClient.CreateFrom(authenticationData);

            _deviceAPi = new DevicesApi(restClient);
        }
Exemple #5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="authenticationData">AuthenticationConfigurationData configuration</param>
 /// <exception cref="MisconfigurationException"></exception>
 protected AuthenticationMethodProviderBase(AuthenticationData authenticationData)
 {
     AuthenticationData = authenticationData;
 }
Exemple #6
0
 /// <summary>
 /// Implement the required validation of the configuration
 /// </summary>
 /// <param name="authenticationData">AuthenticationConfigurationData configuration</param>
 /// <exception cref="MisconfigurationException">throw upon misconfiguration</exception>
 public abstract void ValidateConfiguration(AuthenticationData authenticationData);