public abstract class AbstractJceEncrypter extends BeanSupport implements Encrypter
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_POOL_SIZE |
Constructor and Description |
---|
AbstractJceEncrypter() |
Modifier and Type | Method and Description |
---|---|
protected abstract Cipher |
createCipher(int mode) |
byte[] |
decrypt(byte[] cryptotext) |
byte[] |
encrypt(byte[] plaintext) |
protected Cipher |
getCipher(int mode) |
int |
getPoolSize() |
protected void |
returnCipher(int mode,
Cipher cipher) |
void |
setPoolSize(int poolSize) |
afterPropertiesSet, assertInitialized, destroy, dispose, getBeanDescription, getBeanDescription, getBeanInterface, getBeanName, init, isInitialized, postDispose, postInit, preDispose, preInit, resolveBeanInterface, setBeanName, toString
public static final int DEFAULT_POOL_SIZE
public int getPoolSize()
public void setPoolSize(int poolSize)
protected final void returnCipher(int mode, Cipher cipher)
public byte[] encrypt(byte[] plaintext) throws SessionEncrypterException
encrypt
in interface Encrypter
SessionEncrypterException
public byte[] decrypt(byte[] cryptotext) throws SessionEncrypterException
decrypt
in interface Encrypter
SessionEncrypterException
Copyright © 2006–2018 TinyGroup. All rights reserved.