Class BinaryRC4Encryptor
java.lang.Object
org.docx4j.org.apache.poi.poifs.crypt.Encryptor
org.docx4j.org.apache.poi.poifs.crypt.binaryrc4.BinaryRC4Encryptor
public class BinaryRC4Encryptor extends Encryptor
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classBinaryRC4Encryptor.BinaryRC4CipherOutputStream -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedBinaryRC4Encryptor(BinaryRC4EncryptionInfoBuilder builder) -
Method Summary
Modifier and Type Method Description voidconfirmPassword(java.lang.String password)voidconfirmPassword(java.lang.String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt)protected voidcreateEncryptionInfoEntry(DirectoryNode dir)java.io.OutputStreamgetDataStream(DirectoryNode dir)Return a output stream for encrypted data.protected intgetKeySizeInBytes()Methods inherited from class org.docx4j.org.apache.poi.poifs.crypt.Encryptor
getDataStream, getDataStream, getDataStream, getInstance, getSecretKey, setSecretKey
-
Constructor Details
-
Method Details
-
confirmPassword
public void confirmPassword(java.lang.String password)- Specified by:
confirmPasswordin classEncryptor
-
confirmPassword
public void confirmPassword(java.lang.String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt)- Specified by:
confirmPasswordin classEncryptor
-
getDataStream
public java.io.OutputStream getDataStream(DirectoryNode dir) throws java.io.IOException, java.security.GeneralSecurityExceptionDescription copied from class:EncryptorReturn a output stream for encrypted data.- Specified by:
getDataStreamin classEncryptor- Parameters:
dir- the node to write to- Returns:
- encrypted stream
- Throws:
java.io.IOExceptionjava.security.GeneralSecurityException
-
getKeySizeInBytes
protected int getKeySizeInBytes() -
createEncryptionInfoEntry
- Throws:
java.io.IOException
-