Class DigitalSignatureMetadata
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class DigitalSignatureMetadata implements Parcelable
DigitalSignatureMetadata contains all metadata like appearance config, algorithm and other configuration needed for signing data
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
DigitalSignatureMetadata.CREATOR
-
Field Summary
Fields Modifier and Type Field Description private final SignatureAppearance
signatureAppearance
private final Integer
estimatedSize
private final HashAlgorithm
hashAlgorithm
private final String
reason
private final String
location
private final TimestampData
timestampData
private final BiometricSignatureData
biometricData
public final static DigitalSignatureMetadata.CREATOR
CREATOR
-
Constructor Summary
Constructors Constructor Description DigitalSignatureMetadata(Parcel parcel)
DigitalSignatureMetadata(SignatureAppearance signatureAppearance, Integer estimatedSize, HashAlgorithm hashAlgorithm, String reason, String location, TimestampData timestampData, BiometricSignatureData biometricData)
-
Method Summary
Modifier and Type Method Description final SignatureAppearance
getSignatureAppearance()
SignatureAppearance that will be used to determine how the signature looks once signing is done. final Integer
getEstimatedSize()
The estimated size is part of the size that will be reserved in the PDF document before digitally signing it. final HashAlgorithm
getHashAlgorithm()
Returns the algorithm to hash the document before the signature is created. final String
getReason()
The reason why the document was signed. final String
getLocation()
The place where the document was signed. final TimestampData
getTimestampData()
timestampData is an optional field, it “upgrades” the signature to PAdES B-T level to include a cryptographic timestamp token to prove that the signed document existed at a given point in time. final BiometricSignatureData
getBiometricData()
BiometricSignatureData that will be written to the digital signature. Unit
writeToParcel(Parcel parcel, Integer flags)
Integer
describeContents()
-
-
Constructor Detail
-
DigitalSignatureMetadata
DigitalSignatureMetadata(Parcel parcel)
-
DigitalSignatureMetadata
DigitalSignatureMetadata(SignatureAppearance signatureAppearance, Integer estimatedSize, HashAlgorithm hashAlgorithm, String reason, String location, TimestampData timestampData, BiometricSignatureData biometricData)
-
-
Method Detail
-
getSignatureAppearance
final SignatureAppearance getSignatureAppearance()
SignatureAppearance that will be used to determine how the signature looks once signing is done.
-
getEstimatedSize
final Integer getEstimatedSize()
The estimated size is part of the size that will be reserved in the PDF document before digitally signing it. This size corresponds only to the /Contents field of the signature field, that is, the signature container. Core will actually reserve a bigger space to make room for implementation details (the /ByteRange field, the fact that a signature is hex-encoded in a PDF, etc.). A big estimated size will possibly make the signed document bigger than necessary, but a too small one will cause the signing process to fail. The value will be clamped to the nearest even value between 0 and 256 KB (262144 bytes). If not set, the default is 32 KB (32768 bytes).
-
getHashAlgorithm
final HashAlgorithm getHashAlgorithm()
Returns the algorithm to hash the document before the signature is created. Defaults to SHA-256.
-
getLocation
final String getLocation()
The place where the document was signed.
-
getTimestampData
final TimestampData getTimestampData()
timestampData is an optional field, it “upgrades” the signature to PAdES B-T level to include a cryptographic timestamp token to prove that the signed document existed at a given point in time.
-
getBiometricData
final BiometricSignatureData getBiometricData()
BiometricSignatureData that will be written to the digital signature. May be
null
.
-
writeToParcel
Unit writeToParcel(Parcel parcel, Integer flags)
-
describeContents
Integer describeContents()
-
-
-
-