On Thu, 28 Feb 2008, Daniel Noll wrote:
Load the SummaryInformation and use getSecurity().

Problem is, sometimes it lies. You can also look at the names of the streams in the POIFSFileSystem to determine whether it's encrypted in some situations but that's an exercise for the reader.

See src/scratchpad/src/org/apache/poi/hslf/EncryptedSlideShow.java for this, but that only applies if you encrypt the properties too, as well as the document. If you only encrypt the doc, you'll have to hope that getSecurity() tells the truth...

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to