/// <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);