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


字段摘要
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)
           
 
从类 org.tinygroup.support.BeanSupport 继承的方法
afterPropertiesSet, assertInitialized, destroy, dispose, getBeanDescription, getBeanDescription, getBeanInterface, getBeanName, init, isInitialized, postDispose, postInit, preDispose, preInit, resolveBeanInterface, setBeanName, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

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–2014 开源组织. All rights reserved.