Class APKSigSchemeV3Block
java.lang.Object
com.pnfsoftware.jeb.core.units.code.android.APKSigSchemeV2Block
com.pnfsoftware.jeb.core.units.code.android.APKSigSchemeV3Block
The APK signature scheme version 3 is an extension of version 2. Note that this parser should
also be able to parse versions 3.1 and version 4 of the signature scheme.
Reference: https://source.android.com/docs/security/features/apksigning/v3
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pnfsoftware.jeb.core.units.code.android.APKSigSchemeV2Block
APKSigSchemeV2Block.Attribute, APKSigSchemeV2Block.Certificate, APKSigSchemeV2Block.Digest, APKSigSchemeV2Block.PublicKey, APKSigSchemeV2Block.Signature, APKSigSchemeV2Block.Signer -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intProof-of-rotation additional attribute identifier.static final intRotation minimum SDK version additional attribute identifier.static final intRotation-on-development-release additional attribute identifier.Fields inherited from class com.pnfsoftware.jeb.core.units.code.android.APKSigSchemeV2Block
SigAlgoId_DSA_SHA2_256, SigAlgoId_ECDSA_SHA2_256, SigAlgoId_ECDSA_SHA2_512, SigAlgoId_RSASSA_PKCS1_v1_5_SHA2_256, SigAlgoId_RSASSA_PKCS1_v1_5_SHA2_512, SigAlgoId_RSASSA_PSS_SHA2_256, SigAlgoId_RSASSA_PSS_SHA2_512 -
Constructor Summary
ConstructorsConstructorDescriptionCreate and parse an APK Signature Scheme v3 block.APKSigSchemeV3Block(ByteBuffer b, int minorVersion) Create and parse an APK Signature Scheme v3 block. -
Method Summary
Modifier and TypeMethodDescriptionintGet the minor signature scheme version.protected voidparse(int available) Parse signer records from the current buffer.Methods inherited from class com.pnfsoftware.jeb.core.units.code.android.APKSigSchemeV2Block
algoIdToString, getSigners, readBytes, readInt, readSize, skipAndWarnIfNonZero, skipBytes, toString, verifyZero
-
Field Details
-
PROOF_OF_ROTATION_ATTR_ID
public static final int PROOF_OF_ROTATION_ATTR_IDProof-of-rotation additional attribute identifier.- See Also:
-
ROTATION_MIN_SDK_VERSION_ATTR_ID
public static final int ROTATION_MIN_SDK_VERSION_ATTR_IDRotation minimum SDK version additional attribute identifier.- See Also:
-
ROTATION_ON_DEV_RELEASE_ATTR_ID
public static final int ROTATION_ON_DEV_RELEASE_ATTR_IDRotation-on-development-release additional attribute identifier.- See Also:
-
-
Constructor Details
-
APKSigSchemeV3Block
Create and parse an APK Signature Scheme v3 block.- Parameters:
b- raw v3 signature block data
-
APKSigSchemeV3Block
Create and parse an APK Signature Scheme v3 block.- Parameters:
b- raw v3 signature block dataminorVersion- minor signature scheme version
-
-
Method Details
-
getMinorVersion
public int getMinorVersion()Get the minor signature scheme version.- Returns:
- the minor version: 0 for a 3.0 signing block, 1 for a 3.1 signing block
-
parse
protected void parse(int available) Description copied from class:APKSigSchemeV2BlockParse signer records from the current buffer.- Overrides:
parsein classAPKSigSchemeV2Block- Parameters:
available- number of bytes available in the block
-