DEFAULT_PASSWORD, DEFAULT_POIFS_ENTRY| Modifier and Type | Method and Description |
|---|---|
StandardDecryptor |
clone() |
InputStream |
getDataStream(DirectoryNode dir)
Return a stream with decrypted data.
|
long |
getLength()
Returns the length of the encrypted data that can be safely read with
Decryptor.getDataStream(org.apache.poi.poifs.filesystem.DirectoryNode). |
boolean |
verifyPassword(String password) |
getDataStream, getDataStream, getEncryptionInfo, getInstance, getIntegrityHmacKey, getIntegrityHmacValue, getSecretKey, getVerifier, initCipherForBlock, setChunkSize, setEncryptionInfopublic boolean verifyPassword(String password)
verifyPassword in class Decryptorpublic InputStream getDataStream(DirectoryNode dir) throws IOException
Decryptor
Use Decryptor.getLength() to get the size of that data that can be safely read from the stream.
Just reading to the end of the input stream is not sufficient because there are
normally padding bytes that must be discarded
getDataStream in class Decryptordir - the node to read fromIOExceptionpublic long getLength()
DecryptorDecryptor.getDataStream(org.apache.poi.poifs.filesystem.DirectoryNode).
Just reading to the end of the input stream is not sufficient because there are
normally padding bytes that must be discarded
The length variable is initialized in Decryptor.getDataStream(org.apache.poi.poifs.filesystem.DirectoryNode),
an attempt to call getLength() prior to getDataStream() will result in IllegalStateException.
getLength in class DecryptorgetDataStream(DirectoryNode)public StandardDecryptor clone() throws CloneNotSupportedException
clone in class DecryptorCloneNotSupportedExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved