Modifier and Type | Method and Description |
---|---|
XOREncryptor |
clone() |
void |
confirmPassword(String password) |
void |
confirmPassword(String password,
byte[] keySpec,
byte[] keySalt,
byte[] verifier,
byte[] verifierSalt,
byte[] integritySalt) |
OutputStream |
getDataStream(DirectoryNode dir)
Return a output stream for encrypted data.
|
org.apache.poi.poifs.crypt.xor.XOREncryptor.XORCipherOutputStream |
getDataStream(OutputStream stream,
int initialOffset) |
void |
setChunkSize(int chunkSize)
Sets the chunk size of the data stream.
|
getDataStream, getEncryptionInfo, getInstance, getSecretKey, setEncryptionInfo, setSecretKey
public void confirmPassword(String password)
confirmPassword
in class Encryptor
public void confirmPassword(String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt)
confirmPassword
in class Encryptor
public OutputStream getDataStream(DirectoryNode dir) throws IOException, GeneralSecurityException
Encryptor
getDataStream
in class Encryptor
dir
- the node to write toIOException
GeneralSecurityException
public org.apache.poi.poifs.crypt.xor.XOREncryptor.XORCipherOutputStream getDataStream(OutputStream stream, int initialOffset) throws IOException, GeneralSecurityException
getDataStream
in class Encryptor
IOException
GeneralSecurityException
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 clone() throws CloneNotSupportedException
clone
in class Encryptor
CloneNotSupportedException
Copyright © 2010 - 2020 Adobe. All Rights Reserved