DocumentEncryptOpts
public class DocumentEncryptOpts : SdkObject
Parameters that can be provided when encrypting a new document.
Document IDs must be unique to the segment. If no ID is provided, one will be generated for it. If no name is provided, the document’s name will be left empty. Neither the document’s ID nor name will be encrypted.
-
Constructs a
DocumentEncryptOptswith common values.The document will have a generated ID and no name. Only the document’s author will be able to read and decrypt it.
Declaration
Swift
public convenience init() -
Constructs a
DocumentEncryptOpts.Declaration
Swift
public convenience init( id: DocumentId?, documentName: DocumentName?, grantToAuthor: Bool, userGrants: [UserId], groupGrants: [GroupId], policyGrant: PolicyGrant? )Parameters
idID to use for the document.
documentNameName to use for the document.
grantToAuthortrueif the calling user should have access to decrypt this documentuserGrantsList of users that should have access to read and decrypt this document
groupGrantsList of groups that should have access to read and decrypt this document
policyGrantPolicy to determine which users and groups will have access to read and decrypt this document.
View on GitHub
DocumentEncryptOpts Class Reference