public class DefaultCryptingDelegate extends Object implements ICryptingDelegate
| Constructor and Description |
|---|
DefaultCryptingDelegate()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] bytes)
Decrypts the given bytes.
|
byte[] |
encrypt(byte[] bytes)
Encrypts the given bytes.
|
void |
init(ICryptingDelegateFactory factory)
Initializes this instance.
|
boolean |
isBlockBased()
Returns true when the crypting algorithm is block based.
|
public void init(ICryptingDelegateFactory factory)
init in interface ICryptingDelegatefactory - the factory providing initialization parameterspublic byte[] encrypt(byte[] bytes)
throws Exception
encrypt in interface ICryptingDelegatebytes - bytes to be encryptedException - when an error occurspublic byte[] decrypt(byte[] bytes)
throws Exception
decrypt in interface ICryptingDelegatebytes - bytes to be decryptedException - when an error occurspublic boolean isBlockBased()
Copyright © 2014. All rights reserved.