| java.lang.Object org.pdfbox.encryption.ARCFour
ARCFour | public class ARCFour (Code) | | This class is an implementation of the alleged RC4 algorithm.
author: Ben Litchfield version: $Revision: 1.8 $ |
Constructor Summary | |
public | ARCFour() Constructor. |
Method Summary | |
public void | setKey(byte[] key) This will reset the key to be used. | public void | write(byte aByte, OutputStream output) This will encrypt and write the next byte. | public void | write(byte[] data, OutputStream output) This will encrypt and write the data. | public void | write(InputStream data, OutputStream output) This will encrypt and write the data. | public void | write(byte[] data, int offset, int len, OutputStream output) This will encrypt and write the data. |
ARCFour | public ARCFour()(Code) | | Constructor.
|
setKey | public void setKey(byte[] key)(Code) | | This will reset the key to be used.
Parameters: key - The RC4 key used during encryption. |
write | public void write(byte aByte, OutputStream output) throws IOException(Code) | | This will encrypt and write the next byte.
Parameters: aByte - The byte to encrypt. Parameters: output - The stream to write to. throws: IOException - If there is an error writing to the output stream. |
write | public void write(byte[] data, OutputStream output) throws IOException(Code) | | This will encrypt and write the data.
Parameters: data - The data to encrypt. Parameters: output - The stream to write to. throws: IOException - If there is an error writing to the output stream. |
write | public void write(InputStream data, OutputStream output) throws IOException(Code) | | This will encrypt and write the data.
Parameters: data - The data to encrypt. Parameters: output - The stream to write to. throws: IOException - If there is an error writing to the output stream. |
write | public void write(byte[] data, int offset, int len, OutputStream output) throws IOException(Code) | | This will encrypt and write the data.
Parameters: data - The data to encrypt. Parameters: offset - The offset into the array to start reading data from. Parameters: len - The number of bytes to attempt to read. Parameters: output - The stream to write to. throws: IOException - If there is an error writing to the output stream. |
|
|