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, setPoolSizeafterPropertiesSet, assertInitialized, destroy, dispose, getBeanDescription, getBeanDescription, getBeanInterface, getBeanName, isInitialized, postDispose, postInit, preDispose, preInit, resolveBeanInterface, setBeanNamepublic 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
BeanSupportinit in class BeanSupportExceptionprotected Cipher createCipher(int mode) throws Exception
createCipher in class AbstractJceEncrypterExceptionpublic String toString()
BeanSupporttoString in class BeanSupportCopyright © 2006–2018 TinyGroup. All rights reserved.