public class XOREncryptor extends Encryptor
DEFAULT_POIFS_ENTRY
Modifier | Constructor and Description |
---|---|
protected |
XOREncryptor() |
protected |
XOREncryptor(XOREncryptor other) |
Modifier and Type | Method and Description |
---|---|
void |
confirmPassword(java.lang.String password) |
void |
confirmPassword(java.lang.String password,
byte[] keySpec,
byte[] keySalt,
byte[] verifier,
byte[] verifierSalt,
byte[] integritySalt) |
XOREncryptor |
copy() |
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, getEncryptionInfo, getGenericProperties, getInstance, getSecretKey, setEncryptionInfo, setSecretKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGenericChildren, getGenericRecordType
protected XOREncryptor()
protected XOREncryptor(XOREncryptor other)
public void confirmPassword(java.lang.String password)
confirmPassword
in class Encryptor
public void confirmPassword(java.lang.String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt)
confirmPassword
in class Encryptor
public java.io.OutputStream getDataStream(DirectoryNode dir) throws java.io.IOException, java.security.GeneralSecurityException
Encryptor
getDataStream
in class Encryptor
dir
- the node to write tojava.io.IOException
java.security.GeneralSecurityException
public 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 Encryptor
java.io.IOException
java.security.GeneralSecurityException
protected int getKeySizeInBytes()
public void setChunkSize(int chunkSize)
Encryptor
setChunkSize
in class Encryptor
chunkSize
- the chunk size, i.e. the block size with the same encryption keypublic XOREncryptor copy()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.