public class PoolEncryptor extends InitializeObject implements Encryptor
mutex| Constructor and Description |
|---|
PoolEncryptor() |
PoolEncryptor(Encryptor encryptor) |
PoolEncryptor(Encryptor encryptor,
int poolSize) |
| Modifier and Type | Method and Description |
|---|---|
PoolEncryptor |
copy() |
byte[] |
decrypt(byte[] message) |
void |
destroy() |
byte[] |
encrypt(byte[] message) |
protected void |
init() |
PoolEncryptor |
setEncryptor(Encryptor encryptor) |
PoolEncryptor |
setPoolSize(int poolSize) |
assertNotInitialized, initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializepublic PoolEncryptor()
public PoolEncryptor(Encryptor encryptor)
public PoolEncryptor(Encryptor encryptor, int poolSize)
protected void init()
throws Exception
init in class InitializeObjectExceptionpublic void destroy()
throws DestroyException
destroy in interface InitializeSupportdestroy in class InitializeObjectDestroyExceptionpublic byte[] encrypt(byte[] message)
throws CryptoException
encrypt in interface EncryptorCryptoExceptionpublic byte[] decrypt(byte[] message)
throws CryptoException
decrypt in interface EncryptorCryptoExceptionpublic PoolEncryptor setEncryptor(Encryptor encryptor)
public PoolEncryptor setPoolSize(int poolSize)
public PoolEncryptor copy()
Copyright © 2017. All rights reserved.