Package com.googlecode.d2j.signapk
Class AbstractJarSign
java.lang.Object
com.googlecode.d2j.signapk.AbstractJarSign
- Direct Known Subclasses:
SunJarSignImpl,TinySignImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final PrivateKeyprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionAbstractJarSign(PrivateKey privateKey) AbstractJarSign(PrivateKey privateKey, String digestAlg, String signAlg) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringencodeBase64(byte[] data) voidprotected abstract voidwriteSignatureBlock(byte[] signature, OutputStream out) Write a .RSA file with a digital signature.
-
Field Details
-
digestAlg
-
privateKey
-
signAlg
-
-
Constructor Details
-
AbstractJarSign
-
AbstractJarSign
-
-
Method Details
-
encodeBase64
-
sign
- Throws:
IOExceptionGeneralSecurityException
-
writeSignatureBlock
Write a .RSA file with a digital signature.- Throws:
IOException
-