Function EN Version 4.50

@VerifyNoteSignature

List Misc NotesAdmin Text

Syntax

@VerifyNoteSignature(NOTEHANDLE1;TEXTSECTIONNAME2;TDSIGNED3;TEXTUSERNAME4;TEXTORGANISATION5);

Description

Checks whether the document identified by NOTEHANDLE NOTEHANDLE1 is signed and whether the signature is still valid.
If a signature could be positively confirmed (certified key in the address book), TRUE returned, otherwise @ERROR.
To verify the signature of the entire document, an empty string ("") is specified in TEXT TEXTSECTIONNAME2.
To verify the signature of a section, the name of the section is specified in TEXT TEXTSECTIONNAME2.
In TD TDSIGNED3 returns the time of signing.
In TEXT TEXTUSERNAME4 returns the name of the signer.
In TEXT TEXTORGANISATION5 returns the signer’s organization.

NOTE:
A document can be checked only if it was opened in extended mode (Options=0004(HEX)).

Example:@VerifyNoteSignature(NOTEHANDLE1;TEXTSECTIONNAME2;TDSIGNED3;TEXTUSERNAME4;TEXTORGANISATION5);

DBHANDLE:=@OpenDB("TEST.NSF");

ID:=24666;
OPTIONS:=4;
NOTEHANDLE1:=@OpenNoteByID(DBHANDLE;ID;NOTEHANDLE1;OPTIONS);

TEXTSECTIONNAME2:="";
STATUS:=@VerifyNoteSignature(NOTEHANDLE1;TEXTSECTIONNAME2;TDSIGNED3;TEXTUSERNAME4;TEXTORGANISATION5);
@LogReport(STATUS;3);
@LogReport(TDSIGNED3;3);
@LogReport(TEXTUSERNAME4;3);
@LogReport(TEXTORGANISATION5;3);

NOTEHANDLE1:=@CloseNote(NOTEHANDLE1;0);
DBHANDLE:=@CloseDB(DBHANDLE);

The document with NOTEID 24666 (DEC) in the DB "TEST.NSF" is opened and the document signature is verified.
If the document has no signature, or if the signature is invalid or cannot be verified, @ERROR is returned; otherwise TRUE is returned.

Note : This text was machine-translated and may contain inaccuracies.