Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

this.encryptForRecipients is not a function

$
0
0

Hi all

 

I have a JavaScript as below that keeps returning TypeError: this.encryptForRecipients is not a function. Any Ideas ?

 

JavaScript

 

   var thePermissions = {
                         allowAll: false,
                         allowAccessibility: false,
                         allowContentExtraction: false,
                         allowChanges: "none",
                         allowPrinting: "none"
                     };
                   

var theUserEntity = {
                         firstName: "The",
                         lastName: "User",
                         fullName: "The User",
                        
                     };
                  

var sh = security.getHandler( "Adobe.PPKMS" );
var dir = sh.directories[0];
var dc = dir.connect();

var theGroup = { userEntities: [ theUserEntity ], permissions: thePermissions };

 
this.encryptForRecipients( { oGroups: [theGroup], bMetaData: true } );


Viewing all articles
Browse latest Browse all 12130

Trending Articles