public abstract class AbstractJceEncrypter extends BeanSupport implements Encrypter
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_POOL_SIZE |
| 构造器和说明 |
|---|
AbstractJceEncrypter() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 EncrypterSessionEncrypterExceptionpublic byte[] decrypt(byte[] cryptotext)
throws SessionEncrypterException
decrypt 在接口中 EncrypterSessionEncrypterExceptionCopyright © 2006-2013 开源组织. All Rights Reserved.