org.tinygroup.weblayer.webcontext.session.encrypter
类 AbstractJceEncrypter
java.lang.Object
org.tinygroup.support.BeanSupport
org.tinygroup.weblayer.webcontext.session.encrypter.AbstractJceEncrypter
- 所有已实现的接口:
- org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, Encrypter
- 直接已知子类:
- AesEncrypter
public abstract class AbstractJceEncrypter
- extends BeanSupport
- implements Encrypter
| 从类 org.tinygroup.support.BeanSupport 继承的方法 |
afterPropertiesSet, assertInitialized, destroy, dispose, getBeanDescription, getBeanDescription, getBeanInterface, getBeanName, init, isInitialized, postDispose, postInit, preDispose, preInit, resolveBeanInterface, setBeanName, toString |
DEFAULT_POOL_SIZE
public static final int DEFAULT_POOL_SIZE
- 另请参见:
- 常量字段值
AbstractJceEncrypter
public AbstractJceEncrypter()
getPoolSize
public int getPoolSize()
setPoolSize
public void setPoolSize(int poolSize)
getCipher
protected final Cipher getCipher(int mode)
throws Exception
- 抛出:
Exception
returnCipher
protected final void returnCipher(int mode,
Cipher cipher)
createCipher
protected abstract Cipher createCipher(int mode)
throws Exception
- 抛出:
Exception
encrypt
public byte[] encrypt(byte[] plaintext)
throws SessionEncrypterException
- 指定者:
- 接口
Encrypter 中的 encrypt
- 抛出:
SessionEncrypterException
decrypt
public byte[] decrypt(byte[] cryptotext)
throws SessionEncrypterException
- 指定者:
- 接口
Encrypter 中的 decrypt
- 抛出:
SessionEncrypterException
Copyright © 2006–2013 开源组织. All rights reserved.