Web SDKv1.0.0

SecurityApi.isEncrypted

Whether the document is encrypted. A getter: answers at once, and throws DOCUMENT_CLOSED on a closed document.
getterReadingsince 1.0.0

Signature

get isEncrypted(): boolean

Returns

boolean

Throws

  • DOCUMENT_CLOSED — read on a closed document.

Example

TypeScript
if (doc.security.isEncrypted) badge.hidden = false;

More in SecurityApi