ryantenney / passkit4j

Java library for generating Apple Passbook (.pkpass) files

Home Page:http://www.ryantenney.com/passkit4j/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Keystore

Abdullah501 opened this issue · comments

KeyStore keystore = KeyStore.getInstance("PKCS12", BouncyCastleProvider.PROVIDER_NAME);
        keystore.load(inputStream, chars(password));             
        return keystore;

Why we need to specify "BouncyCastleProvider.PROVIDER_NAME" in code?

Specifying the provider tells java to use Bouncy Castle's KeyStore implementation. This project uses bouncycastle as the provider for all crypto functions.