RepositoryJavaFRFrance
marcwrobel

marcwrobel/jbanking

A Java banking API

122stars
58forks
14issues
2views

Open in Gitpod Build Supported JVM Versions Sonarcloud Status SonarCloud Coverage SonarCloud Vulnerabilities SonarCloud Bugs Maven Central javadoc Reproducible Builds OpenSSF Best Practices OpenSSF Scorecard

jbanking - A Java banking API

jbanking is a library of utilities to help with developing banking functionalities. jbanking is focused on, but not limited to, European banking.

Features

jbanking is supporting the following features :

Requirements

jbanking requires at least Java 8 (build is tested against Java 8, 11, 17, and 21). It has no additional dependency!

Use it!

You can download the latest build on Maven Central or use it as a maven dependency:


<dependency>
  <groupId>fr.marcwrobel</groupId>
  <artifactId>jbanking</artifactId>
  <version>4.3.0</version>
</dependency>

Then you can use the jbanking API.

// Get ISO country information
IsoCountry country = IsoCountry.fromAlpha2Code(" fr ").get();
Assertion.assertEquals("FRA", country.getAlpha3Code());
Assertion.assertEquals(250, country.getNumericCode());
Assertion.assertTrue(country.isIndependent());
Assertion.assertTrue(country.isParticipatingTo(EUROPEAN_ECONOMIC_AREA));

// Get ISO currency information
IsoCurrency currency = IsoCurrency.fromAlphabeticCode(" eur ").get();
Assertion.assertEquals(978, currency.getNumericCode());
Assertion.assertEquals(2, currency.getMinorUnit().get());
Assertion.assertEquals(NATIONAL, currency.getCategory());
Assertion.assertTrue(currency.getCountries().contains(FR));

// Validate an IBAN
Assertions.assertTrue(Iban.isValid(" fr2531682128768051490609537 "));

// Get IBAN information
Iban iban = new Iban(" fr2531682128768051490609537 ");
Assertions.assertEquals("FR2531682128768051490609537", iban.toString());
Assertions.assertEquals("FR25 3168 2128 7680 5149 0609 537", iban.toPrintableString());
Assertions.assertEquals("FR", iban.getCountryCode());
Assertions.assertEquals("25", iban.getCheckDigit());
Assertions.assertEquals("31682128768051490609537", iban.getBban());
Assertions.assertEquals("31682", iban.getBankIdentifier());
Assertions.assertEquals("12876", iban.getBranchIdentifier().get());
Assertions.assertEquals("80514906095", iban.getAccountNumber());
Assertions.assertEquals("37", iban.getNationalCheckDigit().get());

// Generate a random IBAN
Iban randomIban = new RandomIban().next();

// Validate a BIC
Assertions.assertTrue(Bic.isValid(" psstfrppxxx "));

// Get BIC information
Bic bic = new Bic(" psstfrppxxx ");
Assertions.assertEquals("PSSTFRPPXXX", bic.toString());
Assertions.assertEquals("PSST", bic.getInstitutionCode());
Assertions.assertEquals("FR", bic.getCountryCode());
Assertions.assertEquals("PP", bic.getLocationCode());
Assertions.assertEquals("XXX", bic.getBranchCode());
Assertions.assertTrue(bic.isLiveBic());

// Generate a random BIC
Bic randomBic = new RandomBic().next();

// Validate a creditor identifier
Assertions.assertTrue(CreditorIdentifier.isValid(" fr72zzz123456 "));

// Get creditor identifier information
CreditorIdentifier ci = new CreditorIdentifier(" fr72zzz123456 ");
Assertions.assertEquals("FR72ZZZ123456", ci.toString());
Assertions.assertEquals("FR", ci.getCountryCode());
Assertions.assertEquals("72", ci.getCheckDigit());
Assertions.assertEquals("ZZZ", ci.getBusinessCode());
Assertions.assertEquals("123456", ci.getNationalIdentifier());

// Using predefined calendars
Calendar calendar = FinancialCalendars.PARIS;
Assertion.assertTrue(calendar.isHoliday(LocalDate.of(2022, 1, 1)));
Assertion.assertFalse(calendar.isBusinessDay(LocalDate.of(2022, 1, 1)));
Assertion.assertEquals(LocalDate.of(2022, 1, 3), calendar.next(LocalDate.of(2022, 1, 1)));
Assertion.assertEquals(Arrays.asList(LocalDate.of(2022, 1, 3), LocalDate.of(2022, 1, 4)), calendar.businessDaysWithin(LocalDate.of(2022, 1, 1), LocalDate.of(2022, 1, 4)));

For more information, take a look at the Javadoc and the unit tests. Changelogs are available on GitHub Releases.

Alternatives

There is no alternative to jbanking that has all of its features. But here are some partial alternatives:

Contribute

Take a look at the contribution guide.

Need help?

Start a discussion, raise an issue or contribute with a pull-request (please take a look at the contribution guide before).

And for the things that must be kept private (only !), such as security issues, email me at marc.wrobel@gmail.com.

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
Synergy-Shock/country-codes-list

List of codes per country (languages, calling codes, currency codes, etc)

114
Nov 1, 2026
RepositoryPHP
stefangabos/world_countries

Constantly updated lists of world countries and their associated alpha-2, alpha-3 and numeric country codes as defined by the ISO 3166 standard, available in CSV, JSON , PHP, SQL and XML formats, in multiple languages and with national flags included; also available are the ISO 3166-2 codes of provinces/ states associated with the countries

1.6k
Sep 19, 2026
RepositoryPHP
stefangabos/world_countries

Constantly updated lists of world countries and their associated alpha-2, alpha-3 and numeric country codes as defined by the ISO 3166 standard, available in CSV, JSON , PHP, SQL and XML formats, in multiple languages and with national flags included; also available are the ISO 3166-2 codes of provinces/ states associated with the countries

1.6k
Sep 19, 2026
RepositoryPHP
nnjeim/world

A Laravel package which provides a list of the countries, states, cities, currencies, timezones, languages and IP Geolocation.

998
Oct 10, 2026
RepositoryRuby
salesking/sepa_king

Ruby gem for creating SEPA XML files

151
Jun 4, 2024
RepositoryRust
pouriya/keshvar

A Rust library that contains collection of all sorts of useful information for every country.

124
Jun 13, 2026
RepositoryRuby
countries/countries-data-json

ISO 3116 country information in JSON format to be included in other projects.

77
Sep 5, 2026
RepositoryDart
tsinis/sealed_world

Dart-written, Flutter-powered, and ISO-backed ecosystem for the world's data in the form of compile-time, tree-shakable constant classes with a sealed origin 🌍

68
Nov 29, 2026
RepositoryGo
govalues/money

Correctly rounded monetary amounts and exchange rates for Go

57
Jan 25, 2025