Class DocumentEncryptOpts


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

      • DocumentEncryptOpts

        public DocumentEncryptOpts()
      • DocumentEncryptOpts

        public DocumentEncryptOpts​(DocumentId id,
                                   DocumentName name,
                                   boolean grantToAuthor,
                                   UserId[] userGrants,
                                   GroupId[] groupGrants,
                                   PolicyGrant policyGrant)
        Parameters:
        id - unique id of a document. If `null`, 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.
    • Method Detail

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • delete

        public void delete()
      • finalize

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object