Example #1
0
        /// <summary>
        /// Retrieves all the credentials stored in the Virtual Authenticator
        /// </summary>
        /// <returns> List of credentials </returns>
        public List <Credential> GetCredentials()
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>();

            parameters.Add("authenticatorId", this.authenticatorId);

            object[] commandResponse = (object[])this.Execute(driverCommandToExecute: DriverCommand.GetCredentials, parameters).Value;

            List <Credential> credentials = new List <Credential>();

            foreach (object dictionary in commandResponse)
            {
                Credential credential = Credential.FromDictionary((Dictionary <string, object>)dictionary);
                credentials.Add(credential);
            }

            return(credentials);
        }