public class XOREncryptor extends Encryptor implements java.lang.Cloneable
DEFAULT_POIFS_ENTRY| Modifier | Constructor and Description |
|---|---|
protected |
XOREncryptor() |
| Modifier and Type | Method and Description |
|---|---|
XOREncryptor |
clone() |
void |
confirmPassword(java.lang.String password) |
void |
confirmPassword(java.lang.String password,
byte[] keySpec,
byte[] keySalt,
byte[] verifier,
byte[] verifierSalt,
byte[] integritySalt) |
protected void |
createEncryptionInfoEntry(DirectoryNode dir) |
java.io.OutputStream |
getDataStream(DirectoryNode dir)
Return a output stream for encrypted data.
|
org.apache.poi.poifs.crypt.xor.XOREncryptor.XORCipherOutputStream |
getDataStream(java.io.OutputStream stream,
int initialOffset) |
protected int |
getKeySizeInBytes() |
void |
setChunkSize(int chunkSize)
Sets the chunk size of the data stream.
|
getDataStream, getDataStream, getDataStream, getEncryptionInfo, getInstance, getSecretKey, setEncryptionInfo, setSecretKeypublic void confirmPassword(java.lang.String password)
confirmPassword in class Encryptorpublic void confirmPassword(java.lang.String password,
byte[] keySpec,
byte[] keySalt,
byte[] verifier,
byte[] verifierSalt,
byte[] integritySalt)
confirmPassword in class Encryptorpublic java.io.OutputStream getDataStream(DirectoryNode dir) throws java.io.IOException, java.security.GeneralSecurityException
EncryptorgetDataStream in class Encryptordir - the node to write tojava.io.IOExceptionjava.security.GeneralSecurityExceptionpublic org.apache.poi.poifs.crypt.xor.XOREncryptor.XORCipherOutputStream getDataStream(java.io.OutputStream stream,
int initialOffset)
throws java.io.IOException,
java.security.GeneralSecurityException
getDataStream in class Encryptorjava.io.IOExceptionjava.security.GeneralSecurityExceptionprotected int getKeySizeInBytes()
public void setChunkSize(int chunkSize)
EncryptorsetChunkSize in class EncryptorchunkSize - the chunk size, i.e. the block size with the same encryption keyprotected void createEncryptionInfoEntry(DirectoryNode dir) throws java.io.IOException
java.io.IOExceptionpublic XOREncryptor clone() throws java.lang.CloneNotSupportedException
Copyright 2024 The Apache Software Foundation or its licensors, as applicable.