de.intarsys.tools.crypto
Class Cryptdec
java.lang.Object
de.intarsys.tools.crypto.Cryptdec
- All Implemented Interfaces:
- ICryptdec
- Direct Known Subclasses:
- PBCryptdec
public abstract class Cryptdec
- extends Object
- implements ICryptdec
Cryptdec
public Cryptdec(String id,
byte[] iv)
decrypt
public byte[] decrypt(byte[] bytes)
throws IOException
- Decrypt a byte array.
- Specified by:
decrypt in interface ICryptdec
- Parameters:
bytes -
- Returns:
- The decrypted representation of
bytes
- Throws:
IOException
encrypt
public byte[] encrypt(byte[] bytes)
throws IOException
- Encrypt a byte array.
- Specified by:
encrypt in interface ICryptdec
- Parameters:
bytes -
- Returns:
- The encrypted representation of
bytes
- Throws:
IOException
getId
public String getId()
- Description copied from interface:
ICryptdec
- A unique id for the
ICryptdec
- Specified by:
getId in interface ICryptdec
- Returns:
- A unique id for the
ICryptdec
getInitializationVector
public byte[] getInitializationVector()
Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.