Skip to content

phlppnhllngr/pkpassvalidator-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pkpassvalidator-java

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.

Compile

mvn clean package

Run

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" 

Maven dependency

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>

About

Java program that validates pkpass-files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages