Skip to content
Pololei

Modules & capabilities

Choose the core library, then add the payment helpers your application needs.

Module selection

Artifact (group: io.github.nalukit)PurposeJVM dependencies
pololeiIBAN, BBAN, BIC, national checks, builders, registryNo runtime dependencies
pololei-gwtShared sources, GWT module and GWT-RPC serializersGWT user library provided by your application
pololei-epcEPC QR code (GiroCode) payload textpololei
pololei-creditorSEPA Creditor Identifier parsing and validationpololei

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

ArtifactAutomatic module name
pololeiio.github.nalukit.pololei
pololei-epcio.github.nalukit.pololei.epc
pololei-creditorio.github.nalukit.pololei.creditor

Both optional JVM modules require io.github.nalukit.pololei. The GWT artifact is intended for the classpath.

Capabilities and boundaries

CapabilityWhat Pololei doesBoundary
IBANStructure, country, length and MOD 97-10 check digitsDoes not establish account existence or ownership
National checksOptional built-in checks for 16 countries and custom rules per validatorCoverage is explicit; an unavailable rule is not proof of validity
BBANComplete structure and individual field validationDoes not verify national check digit values; use IbanValidator
BIC8 or 11 characters, character rules and country codeDoes not check actual SWIFT registration
EPC QREPC069-12 versions 001/002, eight character sets, payload constraintsProduces text; use a QR renderer with error correction level M
Creditor IdentifierEPC262-08 structure and check digits, German national lengthDoes not prove issuance by a national authority
Country registry89 country definitions from SWIFT registry release 100Bundled source baseline; see provenance and audit
Test dataReproducible random IBANs from an explicit RandomNot 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