com.eruces.teadmin.CodeSigningInfo
The CodeSigningInfo class manages code signing.
Since: 6.8.0
© Pi Soft, 2018-2026 · Tricryption Engine 8.1
Inheritance
- Inherits com.eruces.teadmin.UpdatableObject
Public Member Functions
| Member | Description |
|---|---|
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
| Member | Description |
|---|---|
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
| Parameter | Description |
|---|---|
jar | The jar file to be signed; its name becomes the code name and its content is digested. |
signing_cert | The signing certificate, read from file. |
is_digest_required | Whether a digest of the jar must be verified when the signed code is used. |
Exceptions
| Exception | Description |
|---|---|
AdminException | if 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
| Parameter | Description |
|---|---|
jar | |
signing_cert |
Exceptions
| Exception | Description |
|---|---|
AdminException | if 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