public interface EncryptionHandler
| Modifier and Type | Method and Description |
|---|---|
EncryptionHandlerState |
createEncryptionHandlerState() |
byte[] |
decrypt(byte[] src,
byte[] addKey)
Decrypts the byte array with the encryption key calculated from the base
encryption key held in the implementation and the addKey which is
an addition to the base key.
|
void |
decrypt(InputByteStream src,
OutputByteStream dest,
byte[] addKey)
Decrypts the byte stream with the encryption key calculated from the base
encryption key held in the implementation and the addKey which is
an addition to the base key.
|
byte[] |
encrypt(byte[] src,
byte[] addKey)
Encrypts the byte array with the encryption key calculated from the base
encryption key held in the implementation and the addKey which is
an addition to the base key.
|
void |
encrypt(InputByteStream src,
OutputByteStream dest,
byte[] addKey)
Encrypts the byte stream with the encryption key calculated from the base
encryption key held in the implementation and the addKey which is
an addition to the base key.
|
byte[] encrypt(byte[] src,
byte[] addKey)
throws PDFSecurityConfigurationException
The encryption algorithm depends on a particular implementation of this class.
src - the input byte array.addKey - the addition to the encryption key.PDFSecurityConfigurationExceptionvoid encrypt(InputByteStream src, OutputByteStream dest, byte[] addKey) throws PDFIOException, PDFSecurityConfigurationException
The encryption algorithm depends on a particular implementation of this class.
src - the input byte stream.dest - the output stream of bytesaddKey - the addition to the encryption key.PDFSecurityConfigurationExceptionPDFIOExceptionbyte[] decrypt(byte[] src,
byte[] addKey)
throws PDFSecurityConfigurationException
The encryption algorithm depends on a particular implementation of this class.
src - the input byte array.addKey - the addition to the encryption key.PDFSecurityConfigurationExceptionvoid decrypt(InputByteStream src, OutputByteStream dest, byte[] addKey) throws PDFIOException, PDFSecurityConfigurationException
Decrypts the byte stream with the encryption key calculated from the base encryption key held in the implementation and the addKey which is an addition to the base key.
The encryption algorithm depends on a particular implementation of this class.
src - an input stream of bytes.dest - the output stream of bytesaddKey - the addition to the encryption key.PDFIOExceptionPDFSecurityConfigurationExceptionEncryptionHandlerState createEncryptionHandlerState() throws PDFSecurityConfigurationException
PDFSecurityConfigurationExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved