Skip to content

Instantly share code, notes, and snippets.

@trevorfoskett
Last active November 5, 2019 20:51
Show Gist options
  • Save trevorfoskett/284f7de699d75715fff98c167870d829 to your computer and use it in GitHub Desktop.
Save trevorfoskett/284f7de699d75715fff98c167870d829 to your computer and use it in GitHub Desktop.
Adding a policy object to Virtru encryption client.
const encryptParams = new Virtru.EncryptParamsBuilder()
.withArrayBufferSource(arrayBuffer)
.withDisplayFilename(`${docTitle}.pdf`)
.withPolicy(policy)
.withUsersWithAccess(authorizedUsers)
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment