Package de.brendamour.jpasskit.signing
Interface IPKSigningUtil
- All Known Implementing Classes:
PKAbstractSigningUtil,PKFileBasedSigningUtil,PKInMemorySigningUtil
public interface IPKSigningUtil
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]createSignedAndZippedPersonalizedPkPassArchive(PKPass pass, PKPersonalization personalization, IPKPassTemplate passTemplate, PKSigningInformation signingInformation) Creates a signed and zipped personalized pass using a templatebyte[]createSignedAndZippedPkPassArchive(PKPass pass, IPKPassTemplate passTemplate, PKSigningInformation signingInformation) Creates a signed and zipped pass using a templatebyte[]signManifestFile(byte[] manifestJSON, PKSigningInformation signingInformation) Sign the manifest file
-
Method Details
-
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 signpassTemplate- AIPKPassTemplateobjectsigningInformation- APKSigningInformationobject 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 signpersonalization- Personalization infopassTemplate- AIPKPassTemplateobjectsigningInformation- APKSigningInformationobject 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 arraysigningInformation- APKSigningInformationobject 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)
-