This is a Java program that validates pkpass-files.
The validation code was mostly taken from https://github.com/tomasmcguinness/pkpassvalidator (🙏) and converted to Java.
Unlike @tomasmcguinness' repository, this one does not include any server code.
There is just one main
method that expects a path to a pkpass file as input, prints the validation result to the console and exits with code 1 when there is a validation error.
mvn clean package
Pass a valid java.nio.file.Path
to the main method.
Example (Windows):
java --class-path "target\pkpassvalidator-java-1.0.0.jar;target\lib\*" phlppnhllngr.pkpassvalidator.Main "C:\path\to\some.pkpass"
So far no pkpassvalidator-java
package has been released.
Use JitPack to fetch a jar file built from this repository and use as library in your own project.
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.phlppnhllngr</groupId>
<artifactId>pkpassvalidator-java</artifactId>
<!-- latest commit hash -->
<version>ac328e1</version>
</dependency>
</dependencies>