Modules & capabilities
Choose the core library, then add the payment helpers your application needs.
Module selection
| Artifact (group: io.github.nalukit) | Purpose | JVM dependencies |
|---|---|---|
pololei | IBAN, BBAN, BIC, national checks, builders, registry | No runtime dependencies |
pololei-gwt | Shared sources, GWT module and GWT-RPC serializers | GWT user library provided by your application |
pololei-epc | EPC QR code (GiroCode) payload text | pololei |
pololei-creditor | SEPA Creditor Identifier parsing and validation | pololei |
Use version 1.0.0-rc01 for all Pololei artifacts. The core, EPC, and Creditor Identifier modules contain no third-party runtime dependencies. GWT has its own toolchain and licensing; consult the repository README.
GWT setup
Use pololei-gwt instead of pololei. Add each optional artifact you need and inherit the matching modules:
<inherits name="io.github.nalukit.pololei.Pololei"/>
<!-- Only when pololei-epc is added -->
<inherits name="io.github.nalukit.pololei.epc.PololeiEpc"/>
<!-- Only when pololei-creditor is added -->
<inherits name="io.github.nalukit.pololei.creditor.PololeiCreditor"/>
GWT-RPC serializers for Iban, Bic, and ValidationResult are included in pololei-gwt. For an RPC server, also place pololei-gwt alongside pololei on its classpath.
Java module path
| Artifact | Automatic module name |
|---|---|
| pololei | io.github.nalukit.pololei |
| pololei-epc | io.github.nalukit.pololei.epc |
| pololei-creditor | io.github.nalukit.pololei.creditor |
Both optional JVM modules require io.github.nalukit.pololei. The GWT artifact is intended for the classpath.
Capabilities and boundaries
| Capability | What Pololei does | Boundary |
|---|---|---|
| IBAN | Structure, country, length and MOD 97-10 check digits | Does not establish account existence or ownership |
| National checks | Optional built-in checks for 16 countries and custom rules per validator | Coverage is explicit; an unavailable rule is not proof of validity |
| BBAN | Complete structure and individual field validation | Does not verify national check digit values; use IbanValidator |
| BIC | 8 or 11 characters, character rules and country code | Does not check actual SWIFT registration |
| EPC QR | EPC069-12 versions 001/002, eight character sets, payload constraints | Produces text; use a QR renderer with error correction level M |
| Creditor Identifier | EPC262-08 structure and check digits, German national length | Does not prove issuance by a national authority |
| Country registry | 89 country definitions from SWIFT registry release 100 | Bundled source baseline; see provenance and audit |
| Test data | Reproducible random IBANs from an explicit Random | Not real account data; national digits require builder configuration |
Thread safety
Value objects, country data, and configured validators are immutable. Builders are mutable: create a new builder per identifier or payload. For concurrent test-data generation, use one Random per thread or ThreadLocalRandom.current().
Go deeper
- API reference: entry points, result types, examples, and error handling.
- Registry audit: country definitions and deliberate differences.
- National checks: algorithms, sources, and coverage.