Skip to content

thejibz/passkit4j

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

passkit4j Build Status

Apple Passbook library for Java

  • Fluent API
  • Stream-oriented

Usage

Create a Pass Type ID in the iOS Provisioning Portal (if you haven't done so already), import the resulting pass.cer file into Keychain, then export it as a .p12 file. Download the Apple WWDR certificate.

In the code, create a PassSignerImpl object with these certificates:

PassSigner signer = PassSignerImpl.builder()
	.keystore(new FileInputStream("/path/to/certificate.p12"), "password")
	.intermediateCertificate(new FileInputStream("/path/to/AppleWWDRCA.cer"))
	.build();

Pass pass = new Pass()
	.passTypeIdentifier("pass.com.bouldercoffeeco.storeCard")
	.serialNumber("1a2b3c")
	.teamIdentifier("cafed00d");
	// ... for a full example see src/test/com/ryantenney/passkit4j/StoreCardExample.java

PassSerializer.writePkPassArchive(pass, signer, outputStream);

Maven

Current stable version is 2.0.0, which supports new feautres in iOS 7.

<dependency>
	<groupId>com.ryantenney.passkit4j</groupId>
	<artifactId>passkit4j</artifactId>
	<version>2.0.0</version>
</dependency>

Documentation

Javadocs are hosted at http://ryantenney.github.io/passkit4j/docs/


License

Copyright (c) 2012-2013 Ryan Tenney

Published under Apache Software License 2.0, see LICENSE

Rochester Made

About

Java library for generating Apple Passbook (.pkpass) files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%