update documentation on encryption support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1101398 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6857223c5a
commit
735dd86ac4
@ -33,7 +33,7 @@
|
|||||||
<p>Apache POI contains support for reading few variants of encrypted office files: </p>
|
<p>Apache POI contains support for reading few variants of encrypted office files: </p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>XLS - RC4 Encryption</li>
|
<li>XLS - RC4 Encryption</li>
|
||||||
<li>XML-based formats (XLSX, DOCX and etc) - AES Encryption</li>
|
<li>XML-based formats (XLSX, DOCX and etc) - AES and Agile Encryption</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>Some "write-protected" files are encrypted with build-in password, POI can read that files too.</p>
|
<p>Some "write-protected" files are encrypted with build-in password, POI can read that files too.</p>
|
||||||
@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
<source>
|
<source>
|
||||||
EncryptionInfo info = new EncryptionInfo(filesystem);
|
EncryptionInfo info = new EncryptionInfo(filesystem);
|
||||||
Decryptor d = new Decryptor(info);
|
Decryptor d = Decryptor.getInstance(info);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (!d.verifyPassword(password)) {
|
if (!d.verifyPassword(password)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user