intarsys PDF library API

de.intarsys.pdf.crypt
Class IdentityCryptHandler

java.lang.Object
  extended by de.intarsys.pdf.crypt.AbstractCryptHandler
      extended by de.intarsys.pdf.crypt.IdentityCryptHandler
All Implemented Interfaces:
ICryptHandler

public class IdentityCryptHandler
extends AbstractCryptHandler

The /Identity ICryptHandler, doing nothing a all.


Constructor Summary
IdentityCryptHandler()
           
 
Method Summary
 byte[] decrypt(COSObjectKey key, byte[] bytes)
          Decrypt any bytes in the context of COSObject referenced by the provided key.
 byte[] encrypt(COSObjectKey key, byte[] bytes)
          Encrypt any bytes in the context of COSObject referenced by the provided key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityCryptHandler

public IdentityCryptHandler()
Method Detail

decrypt

public byte[] decrypt(COSObjectKey key,
                      byte[] bytes)
               throws COSSecurityException
Description copied from interface: ICryptHandler
Decrypt any bytes in the context of COSObject referenced by the provided key.

Parameters:
key - of the object which provides the context
bytes - to decrypt
Returns:
the decrypted bytes
Throws:
COSSecurityException

encrypt

public byte[] encrypt(COSObjectKey key,
                      byte[] bytes)
               throws COSSecurityException
Description copied from interface: ICryptHandler
Encrypt any bytes in the context of COSObject referenced by the provided key.

Parameters:
key - of the object which provides the context
bytes - to decrypt
Returns:
the encrypted bytes
Throws:
COSSecurityException

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.