/// <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; }
/// <summary> /// Constructor /// </summary> /// <param name="authenticationData">AuthenticationConfigurationData configuration</param> public AuthenticationMethodProviderFromModule(AuthenticationData authenticationData) : base(authenticationData) { }
/// <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; }
/// <summary> /// Constructor /// </summary> /// <param name="authenticationData">AuthenticationConfigurationData configuration</param> public AuthenticationMethodProviderFromDevice(AuthenticationData authenticationData) : base(authenticationData) { RestClient restClient = RestClient.CreateFrom(authenticationData); _deviceAPi = new DevicesApi(restClient); }
/// <summary> /// Constructor /// </summary> /// <param name="authenticationData">AuthenticationConfigurationData configuration</param> /// <exception cref="MisconfigurationException"></exception> protected AuthenticationMethodProviderBase(AuthenticationData authenticationData) { AuthenticationData = authenticationData; }
/// <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);