/// <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;
 }
示例#2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="authenticationData">AuthenticationConfigurationData configuration</param>
 public AuthenticationMethodProviderFromModule(AuthenticationData authenticationData) : base(authenticationData)
 {
 }
示例#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;
 }
示例#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);
        }
示例#5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="authenticationData">AuthenticationConfigurationData configuration</param>
 /// <exception cref="MisconfigurationException"></exception>
 protected AuthenticationMethodProviderBase(AuthenticationData authenticationData)
 {
     AuthenticationData = authenticationData;
 }
示例#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);