Package com.tccc.kos.commons.kab
Class KabCopier
java.lang.Object
com.tccc.kos.commons.kab.KabCopier
Copy the contents of an existing KAB to a new KAB. This can be used
to effectively re-sign the original KAB by simply making a new KAB
with the same contents but different keys.
This will transfer any encrypted content and copy all permissions from the original KAB.
- Version:
- 2024-02-15
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
KabCopier
Create a copier for the input and output KAB files.- Parameters:
inFile
- the input KAB to copyoutFile
- the output KAB file- Throws:
FileNotFoundException
IOException
-
KabCopier
Create a copier for the input KAB and output stream.- Parameters:
inFile
- the input KAB to copyos
- the output stream for the resulting KAB- Throws:
IOException
-
-
Method Details
-
copy
Performs the copy operation.- Throws:
IOException
-
getKeySet
-
setKeySet
- Returns:
this
.
-