aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org/apache/poi/poifs/crypt
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2015-04-29 19:47:35 +0000
committerNick Burch <nick@apache.org>2015-04-29 19:47:35 +0000
commit25cf50433d03d33e78db2c3df03f1a3df6e6dfaf (patch)
tree6fa78b1b3ad10e8505e0dc562132feb80242e2ff /src/ooxml/java/org/apache/poi/poifs/crypt
parentd00da9fe034580306762fd24c4f25f7a9e35be53 (diff)
downloadpoi-25cf50433d03d33e78db2c3df03f1a3df6e6dfaf.tar.gz
poi-25cf50433d03d33e78db2c3df03f1a3df6e6dfaf.zip
Use a constant for the name of the OOXML encrypted package node
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1676838 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/poifs/crypt')
-rw-r--r--src/ooxml/java/org/apache/poi/poifs/crypt/agile/AgileDecryptor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ooxml/java/org/apache/poi/poifs/crypt/agile/AgileDecryptor.java b/src/ooxml/java/org/apache/poi/poifs/crypt/agile/AgileDecryptor.java
index 05499685f5..3af78128c8 100644
--- a/src/ooxml/java/org/apache/poi/poifs/crypt/agile/AgileDecryptor.java
+++ b/src/ooxml/java/org/apache/poi/poifs/crypt/agile/AgileDecryptor.java
@@ -279,7 +279,7 @@ public class AgileDecryptor extends Decryptor {
}
public InputStream getDataStream(DirectoryNode dir) throws IOException, GeneralSecurityException {
- DocumentInputStream dis = dir.createDocumentInputStream("EncryptedPackage");
+ DocumentInputStream dis = dir.createDocumentInputStream(DEFAULT_POIFS_ENTRY);
_length = dis.readLong();
ChunkedCipherInputStream cipherStream = new AgileCipherInputStream(dis, _length);