org.tinygroup.weblayer.webcontext.session.encrypter
public abstract class AbstractJceEncrypter extends BeanSupport implements Encrypter
| Modifier and Type | Field and 描述 |
|---|---|
static int |
DEFAULT_POOL_SIZE |
| Constructor and 描述 |
|---|
AbstractJceEncrypter() |
| Modifier and Type | Method and 描述 |
|---|---|
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, toStringpublic 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 接口 {1} 中的 {0} EncrypterSessionEncrypterExceptionpublic byte[] decrypt(byte[] cryptotext)
throws SessionEncrypterException
decrypt 接口 {1} 中的 {0} EncrypterSessionEncrypterExceptionCopyright © 2006–2015 TinyGroup. All rights reserved.