Definition (stubs) for build-in UnityBase modules & globals - such stubs are used by IDEs.
Submodules
Types
# SignatureValidationResult static
A crypto-library independent signature validation result
Properties
valid
: booleanIs signature match document
errorMessage
: stringfilled in case valid is false
errorCode
: numberError code from library
warnings
: stringOptional warnings about signatures (for example - annotations in PDF)
tspValid
: booleanIs timestamp retrieved from authorised source (not from local computer)
ocspVerified
: booleanIs signer certificate status verified during signing
hardwareKeyUsed
: booleanIs hardware token used to made signature
signingTime
: DateTime of signing. In case tspValid this time is taken from authorised source using TSP protocol, in other case - this is UNTRUSTED time of local signer computer
isDigitalStamp
: BooleanIs signature certificate is a digital time stamp
signAlgo
: stringSignature algorithm (DSTU-4145, RSA, ECDSA)
signType
: stringType of signature (Qualified, Advanced)
containerType
: stringType of signature container
mediaSerial
: stringFor hardware keys - serial number of hardware key
certificate
: ObjectSigner certificate information. In case valid===false certificate may not exist (or broken) and this property is empty object
certificate.certKind
: StringCertificate kind ('Qualified' \ 'Advanced')
certificate.keyUsage
: StringString with key usage information
certificate.serial
: StringCertificate serial number
certificate.validFrom
: DateCertificate valid starting from this date
certificate.validTo
: DateCertificate valid up to this date
certificate.issuedBy
: ObjectCertificate issuer info
certificate.issuedBy.orgName
: StringOrganization name what issue certificate
certificate.issuedBy.fullName
: StringAuthority name what issue certificate
certificate.issuedBy.country
: StringAuthority location country
certificate.issuedBy.locality
: StringAuthority location locality
certificate.issuedBy.issuerID
: StringAuthority ID
certificate.issuedBy.orgUnit
opt : StringAuthority organization unit
certificate.certificateAsBuffer
opt : ArrayBufferSigner certificate in bin format
subject
: ObjectIndividual who owns a certificate. In case valid===false certificate may not exists (or broken) and this property is empty object
subject.DRFO
opt : ObjectIndividual DRFO (of ID card number in some cases)
subject.fullName
: ObjectIndividual full name. Can be empty for stamps?
subject.country
: StringIndividual location country
subject.locality
: StringIndividual location locality
subject.eMail
opt : StringIndividual e-mail
subject.phone
opt : StringIndividual phone number
organization
: ObjectOrganization where individual who owns a certificate works. In case of self-employed individual all fields are empty
organization.EDRPOU
: StringOrganization EDRPOU
organization.orgName
: StringOrganization EDRPOU
organization.digitalStampName
: StringIn case certificate.isDigitalStamp===true contains stamp name
organization.position
: StringPosition of individual within the organization
organization.orgUnit
opt : StringDepartment within the organization where individual works