


: The password to access the keystore.: The path to the keystore where the SSL certificate for this server is stored.Create a Java Property object containing at least the three keys 'rest.bindIP', 'rest.bindPort' and ''.įor the Production mode, you'll have to enable SSL and provide the following 4 keys:.The set up and start the Server you need two things: Things like storing passes and registrations still need to be implemented according to your own needs (or added to an existing Application). The jPasskit Server doesn't provide a full fledged PassKit Web Service but merely the basics you need implement your own standalone server. PKFileBasedSigningUtil pkSigningUtil = new PKFileBasedSigningUtil() īyte signedAndZippedPkPassArchive = pkSigningUtil.createSignedAndZippedPkPassArchive(pass, passTemplate, pkSigningInformation) PKPassTemplateFolder passTemplate = new PKPassTemplateFolder(template_path) PKSigningInformation pkSigningInformation = new PKSigningInformationUtil().loadSigningInformationFromPKCS12AndIntermediateCertificate(keyStorePath, keyStorePassword, appleWWDRCA) In order to use an existing folder on the file system as you pass's template, you create an instance of PKPassTemplateFolder using the path to your folder as argument:

using your own implementation (implementing IPKPassTemplate)įolder-based templates (standard approach).as a set of streams (using PKPassTemplateInMemory).as a folder (using PKPassTemplateFolder).JPasskit provides a flexible mechanism to provide such templates: Images (icons, logos, background images).Usually, passes contain additional information that need to be included in the final, signed pass, e.g. messageEncoding(Charset.forName("utf-8")) format(PKBarcodeFormat.PKBarcodeFormatQR)
