public SwedbankLogin(BankType bank) { _selectedBank = BankTypeDefinition.Banks[bank]; _requester = new SwedbankRequester(GenerateAuthKey(_selectedBank), GenerateDsid(), _selectedBank.UserAgent); }
/// <summary> /// Generate authorization key /// </summary> /// <returns>Auth key</returns> private string GenerateAuthKey(AppData bank) { return(Convert.ToBase64String(Encoding.UTF8.GetBytes(bank.AppId + ":" + Guid.NewGuid().ToString().ToUpper())));; }
public Swedbank(AppData selectedBank, SwedbankRequester requester) { _selectedBank = selectedBank; _requester = requester; }