Class DocumentEncryptOpts


  • public final class DocumentEncryptOpts
    extends java.lang.Object
    Options for document creation.
    • Constructor Detail

      • DocumentEncryptOpts

        public DocumentEncryptOpts()
    • Method Detail

      • create

        public static DocumentEncryptOpts create​(DocumentId id,
                                                 DocumentName name,
                                                 boolean grantToAuthor,
                                                 UserId[] userGrants,
                                                 GroupId[] groupGrants,
                                                 PolicyGrant policyGrant)
        Parameters:
        id - unique id of a document. If none, the server will assign an id
        name - human readable name of the document. Does not need to be unique
        grantToAuthor - Flag determining whether to encrypt to the calling user or not. If set to false at least one value must be present in the `grant` lists.
        userGrants - list of user ids that will be granted access to the document
        groupGrants - list of group ids that will be granted access to the document
        policyGrant - The policy labels which will be evaluated to determine grants.
      • delete

        public void delete()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable