public abstract class StandardCryptHandler extends AbstractCryptHandler
ICryptHandler. The concrete implementations provide the standard RC4
and AES algorithms.| Constructor and Description |
|---|
StandardCryptHandler() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(COSObjectKey objectKey,
byte[] bytes)
Decrypt any bytes in the context of COSObject referenced by the provided
key.
|
byte[] |
encrypt(COSObjectKey objectKey,
byte[] bytes)
Encrypt any bytes in the context of COSObject referenced by the provided
key.
|
void |
initialize(byte[] pCryptKey) |
public byte[] decrypt(COSObjectKey objectKey, byte[] bytes) throws COSSecurityException
ICryptHandlerobjectKey - of the object which provides the contextbytes - to decryptCOSSecurityExceptionpublic void initialize(byte[] pCryptKey)
throws COSSecurityException
COSSecurityExceptionpublic byte[] encrypt(COSObjectKey objectKey, byte[] bytes) throws COSSecurityException
ICryptHandlerobjectKey - of the object which provides the contextbytes - to decryptCOSSecurityExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.