Protecting PDF files and XDO.CFG

You may have seen multiple postings regarding how to set a password on a PDF file created with XML Publisher by modifying the XDO.CFG file. While this does provide some protection, it sets the same password on ALL pdf's.

In PeopleTools 8.50 the reporting development team incorporated this feature in the Report Definition page, see the graphic below.



To further enhance this capability, security related properties can be overridden at runtime through PeopleCode as all other XMLP properties using the SetRuntimeProperties() method on the ReportDefn class. This is documented in PeopleBooks. Basically this method need to be called right before calling the processReport() method:

Sample code snippet ... .
.
&asPropName = CreateArrayRept("", 0);
&asPropValue = CreateArrayRept("", 0);
&asPropName.Push("pdf-open-password");
&asPropValue.Push("test");
&oRptDefn.SetRuntimeProperties(&asPropName, &asPropValue);

&oRptDefn.ProcessReport(&sTemplateId, %Language_User, &dAsOfDate, &sOutputFormat);


Of course users should not hardcode the password value in the code, instead, if the password is stored encrypted in the database or somewhere else, they can use Decrypt() api

See the online PeopleBooks here for more information:
Hosted PeopleBooks

You can read more about the configurable options in the Oracle Business Intelligence Publisher User's Guide HERE

I would be interested in learning of your experiences with this feature (click the feedback link on the main PeopleTools blog page), thanks.

Comments:

Post a Comment:
Comments are closed for this entry.
About

This blog provides information to the PeopleSoft community, about PeopleSoft Technology, otherwise known as PeopleTools.

For the PeopleSoft Applications blog see the PeopleSoft Strategy Blog.

For the Oracle Campus blog see Oracle Campus Blog.

For information about PeopleSoft see the PeopleSoft Information Portal.

For information about PeopleSoft and PeopleTools releases and updates see PeopleSoft Planned Features and Enhancements (login required).

Search

Archives
« April 2016
SunMonTueWedThuFriSat
     
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
26
27
28
29
30
       
Today