After looking through the downloaded javadocs (not the ones online) i found out that license4j indeed has such a method, but does not mention it in the documentation online. Sorry for that.
The used method was this one:
License license = LicenseValidator.validate( key, publickey, productID, productEdition, productVersion, null, null, "YOURSERVERNAME:PORT/algas/validateobk", new DefaultOnlineLicenseKeyCheckTimerHandlerImpl("Online License Key can not be obtained.", false));