nl.gx.webmanager.handler.util
Class CipherPool
java.lang.Object
nl.gx.webmanager.handler.util.CipherPool
public class CipherPool
- extends java.lang.Object
Object pool for ciphers. After calling the init method, the objects are as good as new
|
Constructor Summary |
CipherPool(java.lang.String algorithm)
|
|
Method Summary |
byte[] |
decrypt(byte[] encodedBytes,
byte[] key)
|
byte[] |
encrypt(byte[] message,
byte[] key)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CipherPool
public CipherPool(java.lang.String algorithm)
encrypt
public byte[] encrypt(byte[] message,
byte[] key)
throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
decrypt
public byte[] decrypt(byte[] encodedBytes,
byte[] key)
throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
Copyright © 2007-2010 GX creative online development BV. All Rights Reserved.