public class BinaryRC4Encryptor extends Encryptor
| Modifier and Type | Class and Description |
|---|---|
protected class |
BinaryRC4Encryptor.BinaryRC4CipherOutputStream |
DEFAULT_POIFS_ENTRY| Modifier | Constructor and Description |
|---|---|
protected |
BinaryRC4Encryptor() |
protected |
BinaryRC4Encryptor(BinaryRC4Encryptor 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) |
BinaryRC4Encryptor |
copy() |
protected void |
createEncryptionInfoEntry(DirectoryNode dir) |
java.io.OutputStream |
getDataStream(DirectoryNode dir)
Return a output stream for encrypted data.
|
BinaryRC4Encryptor.BinaryRC4CipherOutputStream |
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, setSecretKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGenericChildren, getGenericRecordTypeprotected BinaryRC4Encryptor()
protected BinaryRC4Encryptor(BinaryRC4Encryptor other)
public 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 BinaryRC4Encryptor.BinaryRC4CipherOutputStream getDataStream(java.io.OutputStream stream, int initialOffset) throws java.io.IOException, java.security.GeneralSecurityException
getDataStream in class Encryptorjava.io.IOExceptionjava.security.GeneralSecurityExceptionprotected int getKeySizeInBytes()
protected void createEncryptionInfoEntry(DirectoryNode dir) throws java.io.IOException
java.io.IOExceptionpublic void setChunkSize(int chunkSize)
EncryptorsetChunkSize in class EncryptorchunkSize - the chunk size, i.e. the block size with the same encryption keypublic BinaryRC4Encryptor copy()
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.