public class AesEncrypter extends AbstractJceEncrypter
Modifier and Type | Field and Description |
---|---|
static String |
ALG_NAME |
static int |
DEFAULT_KEY_SIZE |
DEFAULT_POOL_SIZE
Constructor and Description |
---|
AesEncrypter() |
Modifier and Type | Method and Description |
---|---|
protected Cipher |
createCipher(int mode) |
String |
getKey() |
int |
getKeySize() |
protected void |
init()
初始化bean。
|
void |
setKey(String key) |
void |
setKeySize(int keySize) |
String |
toString()
转换成字符串。
|
decrypt, encrypt, getCipher, getPoolSize, returnCipher, setPoolSize
afterPropertiesSet, assertInitialized, destroy, dispose, getBeanDescription, getBeanDescription, getBeanInterface, getBeanName, isInitialized, postDispose, postInit, preDispose, preInit, resolveBeanInterface, setBeanName
public static final String ALG_NAME
public static final int DEFAULT_KEY_SIZE
public String getKey()
public void setKey(String key)
public int getKeySize()
public void setKeySize(int keySize)
protected void init() throws Exception
BeanSupport
init
in class BeanSupport
Exception
protected Cipher createCipher(int mode) throws Exception
createCipher
in class AbstractJceEncrypter
Exception
public String toString()
BeanSupport
toString
in class BeanSupport
Copyright © 2006–2018 TinyGroup. All rights reserved.