Class ValidatableFile
java.lang.Object
ch.admin.suis.validator.rest.to.response.ValidatableFile
A data structure that represents a signed file when calling the validation client service. The
ValidatableFile contains one or more nested data structures of type SignatureTO each representing a
signature. When the service is called with the processUnsignedFiles flag set to true, the signatures
entry might also be empty.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theclientproperty.byte[]Gets thedocumentHashproperty.Gets thedocumentNameproperty.Deprecated.intGets themdpPermissionproperty.Gets thesignaturesproperty.Gets thevalidationDataproperty.voidSets theclientproperty.voidsetDocumentHash(byte[] documentHash) Sets thedocumentHashproperty.voidsetDocumentName(String documentName) Sets thedocumentNameproperty.voidsetMandant(String mandant) Deprecated.voidsetMdpPermission(int mdpPermission) Sets themdpPermissionproperty.voidsetSignatures(List<SignatureTO> signatures) Sets thesignaturesproperty.voidsetValidationData(ValidationData validationData) Sets thevalidationDataproperty.toString()
-
Constructor Details
-
ValidatableFile
public ValidatableFile()
-
-
Method Details
-
getClient
Gets theclientproperty.- Returns:
- the value of the
clientproperty
-
getDocumentHash
public byte[] getDocumentHash()Gets thedocumentHashproperty.- Returns:
- the value of the
documentHashproperty
-
getDocumentName
Gets thedocumentNameproperty.- Returns:
- the value of the
documentNameproperty
-
getMandant
Deprecated.usegetClient()Gets theclientproperty from its legacy name.- Returns:
- the
clientproperty.
-
getMdpPermission
public int getMdpPermission()Gets themdpPermissionproperty. Represents the numeric permission level for document modifications. The value is determined from a PDF certification signature with Modification Detection and Prevention (MDP). The value is an integer where:The value is an integer where:
- -1: Undefined permission level
- 0: Unknown permission level
- 1: No changes allowed
- 2: Fill and sign operations allowed
- 3: Fill, sign and annotate operations allowed
- Returns:
- the value of the
mdpPermissionproperty
-
getSignatures
Gets thesignaturesproperty.- Returns:
- the value of the
signaturesproperty
-
getValidationData
Gets thevalidationDataproperty.- Returns:
- the value of the
validationDataproperty
-
setClient
Sets theclientproperty.- Parameters:
client- the value to set for theclientproperty.
-
setDocumentHash
public void setDocumentHash(byte[] documentHash) Sets thedocumentHashproperty. ThedocumentHashproperty is a SHA-256 hash of the file represented by this object.- Parameters:
documentHash- the value to set for thedocumentHashproperty.
-
setDocumentName
Sets thedocumentNameproperty.- Parameters:
documentName- the value to set for thedocumenntNameproperty.
-
setMandant
Deprecated.Sets theclientproperty with its legacy name.- Parameters:
mandant- the value to set for theclientproperty.
-
setMdpPermission
public void setMdpPermission(int mdpPermission) Sets themdpPermissionproperty. Represents the numeric permission level for document modifications. The value is determined from a PDF certification signature with Modification Detection and Prevention (MDP). The value is an integer where:- -1: Undefined permission level
- 0: Unknown permission level
- 1: No changes allowed
- 2: Fill and sign operations allowed
- 3: Fill, sign and annotate operations allowed
- Parameters:
mdpPermission- the value to set for themdpPermissionproperty.
-
setSignatures
Sets thesignaturesproperty. Thesignaturesproperty is a list ofSignatureTOdata structures each representing a signature in the file represented by this object.- Parameters:
signatures- the value to set for thesignaturesproperty.
-
setValidationData
Sets thevalidationDataproperty.- Parameters:
validationData- the value to set for thevalidationDataproperty.
-
toString
-
getClient()