Package de.brendamour.jpasskit.signing
Class PKFileBasedSigningUtil
java.lang.Object
de.brendamour.jpasskit.signing.PKAbstractSigningUtil
de.brendamour.jpasskit.signing.PKFileBasedSigningUtil
- All Implemented Interfaces:
IPKSigningUtil
-
Field Summary
Fields inherited from class de.brendamour.jpasskit.signing.PKAbstractSigningUtil
MANIFEST_JSON_FILE_NAME, objectWriter, PASS_JSON_FILE_NAME, PERSONALIZATION_JSON_FILE_NAME, SIGNATURE_FILE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionPKFileBasedSigningUtil(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Deprecated.Please use PKFileBasedSigningUtil(ObjectWriter objectWriter) insteadPKFileBasedSigningUtil(com.fasterxml.jackson.databind.ObjectWriter objectWriter) -
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[]createSignedAndZippedPkPassArchive(PKPass pass, String pathToTemplateDirectory, PKSigningInformation signingInformation) byte[]createSignedAndZippedPkPassArchive(PKPass pass, URL fileUrlOfTemplateDirectory, PKSigningInformation signingInformation) voidsignManifestFileAndWriteToDirectory(File temporaryPassDirectory, File manifestJSONFile, PKSigningInformation signingInformation) Methods inherited from class de.brendamour.jpasskit.signing.PKAbstractSigningUtil
configureObjectMapper, getRelativePathOfZipEntry, signManifestFile, signManifestUsingContent
-
Constructor Details
-
PKFileBasedSigningUtil
public PKFileBasedSigningUtil() -
PKFileBasedSigningUtil
public PKFileBasedSigningUtil(com.fasterxml.jackson.databind.ObjectWriter objectWriter) -
PKFileBasedSigningUtil
Deprecated.Please use PKFileBasedSigningUtil(ObjectWriter objectWriter) instead- Parameters:
objectMapper-
-
-
Method Details
-
createSignedAndZippedPkPassArchive
public byte[] createSignedAndZippedPkPassArchive(PKPass pass, IPKPassTemplate passTemplate, PKSigningInformation signingInformation) throws PKSigningException Description copied from interface:IPKSigningUtilCreates 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
public byte[] createSignedAndZippedPersonalizedPkPassArchive(PKPass pass, PKPersonalization personalization, IPKPassTemplate passTemplate, PKSigningInformation signingInformation) throws PKSigningException Description copied from interface:IPKSigningUtilCreates 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)
-
createSignedAndZippedPkPassArchive
public byte[] createSignedAndZippedPkPassArchive(PKPass pass, URL fileUrlOfTemplateDirectory, PKSigningInformation signingInformation) throws PKSigningException - Throws:
PKSigningException
-
createSignedAndZippedPkPassArchive
public byte[] createSignedAndZippedPkPassArchive(PKPass pass, String pathToTemplateDirectory, PKSigningInformation signingInformation) throws PKSigningException - Throws:
PKSigningException
-
signManifestFileAndWriteToDirectory
public void signManifestFileAndWriteToDirectory(File temporaryPassDirectory, File manifestJSONFile, PKSigningInformation signingInformation) throws PKSigningException - Throws:
PKSigningException
-