de.intarsys.pdf.crypt
Class IdentityCryptHandler
java.lang.Object
de.intarsys.pdf.crypt.AbstractCryptHandler
de.intarsys.pdf.crypt.IdentityCryptHandler
- All Implemented Interfaces:
- ICryptHandler
public class IdentityCryptHandler
- extends AbstractCryptHandler
The /Identity ICryptHandler
, doing nothing a all.
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. |
IdentityCryptHandler
public IdentityCryptHandler()
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 contextbytes
- 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 contextbytes
- to decrypt
- Returns:
- the encrypted bytes
- Throws:
COSSecurityException
Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.