Package com.ironcorelabs.sdk
Class DocumentEncryptOpts
- java.lang.Object
-
- com.ironcorelabs.sdk.DocumentEncryptOpts
-
public final class DocumentEncryptOpts extends java.lang.Object
Options for document creation.
-
-
Constructor Summary
Constructors Constructor Description DocumentEncryptOpts()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DocumentEncryptOpts
create(DocumentId id, DocumentName name, boolean grantToAuthor, UserId[] userGrants, GroupId[] groupGrants, PolicyGrant policyGrant)
void
delete()
protected void
finalize()
-
-
-
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 idname
- human readable name of the document. Does not need to be uniquegrantToAuthor
- 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 documentgroupGrants
- list of group ids that will be granted access to the documentpolicyGrant
- 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 classjava.lang.Object
- Throws:
java.lang.Throwable
-
-