Interface IPKSigningUtil

    • Method Detail

      • createSignedAndZippedPkPassArchive

        byte[] createSignedAndZippedPkPassArchive​(PKPass pass,
                                                  IPKPassTemplate passTemplate,
                                                  PKSigningInformation signingInformation)
                                           throws PKSigningException
        Creates a signed and zipped pass using a template
        Parameters:
        pass - The pass to sign
        passTemplate - A IPKPassTemplate object
        signingInformation - A PKSigningInformation object containing the signing info
        Returns:
        a signed and zipped .pkpass file
        Throws:
        PKSigningException - will throw any underlying exception in case something goes wrong (i.e. template not found)
      • createSignedAndZippedPersonalizedPkPassArchive

        byte[] createSignedAndZippedPersonalizedPkPassArchive​(PKPass pass,
                                                              PKPersonalization personalization,
                                                              IPKPassTemplate passTemplate,
                                                              PKSigningInformation signingInformation)
                                                       throws PKSigningException
        Creates a signed and zipped personalized pass using a template
        Parameters:
        pass - The pass to sign
        personalization - Personalization info
        passTemplate - A IPKPassTemplate object
        signingInformation - A PKSigningInformation object containing the signing info
        Returns:
        a signed and zipped .pkpass file
        Throws:
        PKSigningException - will throw any underlying exception in case something goes wrong (i.e. template not found)
      • signManifestFile

        byte[] signManifestFile​(byte[] manifestJSON,
                                PKSigningInformation signingInformation)
                         throws PKSigningException
        Sign the manifest file
        Parameters:
        manifestJSON - JSON file as byte array
        signingInformation - A PKSigningInformation object containing the signing info
        Returns:
        The signature for the manifest file
        Throws:
        PKSigningException - will throw any underlying exception in case something goes wrong (i.e. template not found)