Skip to main content

com.eruces.teadmin.CodeSigningInfo

The CodeSigningInfo class manages code signing.

Since: 6.8.0

© Pi Soft, 2018-2026 · Tricryption Engine 8.1

Inheritance

Public Member Functions

MemberDescription
CodeSigningInfo()Default constructor.
CodeSigningInfo(long id)
CodeSigningInfo(File jar, File signing_cert, boolean is_digest_required)Constructs a CodeSigningInfo from a jar and the certificate that signs it.
CodeSigningInfo(File jar, byte[] signing_cert)This will be used when verifying the signing certificate from JarEntry.
long getCodeSigningInfoID()
String getCodeName()
byte[] getSigningCertificate()
byte[] getDigest()
boolean isDigestRequired()
String toString()Convert operation class into a string.

Protected Member Functions

MemberDescription
void getParameters(TreeMap param)
void putParameters(TreeMap param)

Member Function Documentation

CodeSigningInfo()

Default constructor.

CodeSigningInfo(File jar, File signing_cert, boolean is_digest_required)

Constructs a CodeSigningInfo from a jar and the certificate that signs it.

Parameters

ParameterDescription
jarThe jar file to be signed; its name becomes the code name and its content is digested.
signing_certThe signing certificate, read from file.
is_digest_requiredWhether a digest of the jar must be verified when the signed code is used.

Exceptions

ExceptionDescription
AdminExceptionif the jar cannot be read or digested, or the certificate cannot be loaded.

CodeSigningInfo(File jar, byte[] signing_cert)

This will be used when verifying the signing certificate from JarEntry.

All signing cert will be checked until one can be verified. Otherwise, verification will fail.

Parameters

ParameterDescription
jar
signing_cert

Exceptions

ExceptionDescription
AdminExceptionif the jar cannot be read or its SHA-256 digest cannot be computed.

String toString()

Convert operation class into a string.

Returns: string of operation class