Package icu.easyj.web.param.crypto.impls
Class DefaultParamCryptoHandlerPropertiesImpl
java.lang.Object
icu.easyj.web.param.crypto.impls.DefaultParamCryptoHandlerPropertiesImpl
- All Implemented Interfaces:
IParamCryptoHandlerProperties
public class DefaultParamCryptoHandlerPropertiesImpl
extends Object
implements IParamCryptoHandlerProperties
默认的参数加密处理器配置
- Author:
- wangliang181230
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription对称加密算法
格式如:{对称加密算法}/{模式}/{补码方式}
举例:AES/CBC/PKCS7Padding获取字符编码getIv()获取偏移向量getKey()获取密钥boolean判断是否强制要求入参加密boolean判断出参是否需要加密voidsetAlgorithm(String algorithm) 设置对称加密算法voidsetCharset(Charset charset) 设置编码void设置偏移向量void设置密钥voidsetNeedEncryptInputParam(boolean needEncryptInputParam) 设置是否强制要求入参加密voidsetNeedEncryptOutputParam(boolean needEncryptOutputParam) 设置出参是否需要加密
-
Constructor Details
-
DefaultParamCryptoHandlerPropertiesImpl
public DefaultParamCryptoHandlerPropertiesImpl()
-
-
Method Details
-
getAlgorithm
Description copied from interface:IParamCryptoHandlerProperties对称加密算法
格式如:{对称加密算法}/{模式}/{补码方式}
举例:AES/CBC/PKCS7Padding- Specified by:
getAlgorithmin interfaceIParamCryptoHandlerProperties- Returns:
- algorithm 对称加密算法
-
setAlgorithm
Description copied from interface:IParamCryptoHandlerProperties设置对称加密算法- Specified by:
setAlgorithmin interfaceIParamCryptoHandlerProperties- Parameters:
algorithm- 对称加密算法
-
getKey
Description copied from interface:IParamCryptoHandlerProperties获取密钥- Specified by:
getKeyin interfaceIParamCryptoHandlerProperties- Returns:
- key 密钥
-
setKey
Description copied from interface:IParamCryptoHandlerProperties设置密钥- Specified by:
setKeyin interfaceIParamCryptoHandlerProperties- Parameters:
key- 密钥
-
getIv
Description copied from interface:IParamCryptoHandlerProperties获取偏移向量- Specified by:
getIvin interfaceIParamCryptoHandlerProperties- Returns:
- iv 偏移向量
-
setIv
Description copied from interface:IParamCryptoHandlerProperties设置偏移向量- Specified by:
setIvin interfaceIParamCryptoHandlerProperties- Parameters:
iv- 偏移向量
-
getCharset
Description copied from interface:IParamCryptoHandlerProperties获取字符编码- Specified by:
getCharsetin interfaceIParamCryptoHandlerProperties- Returns:
- 字符编码
-
setCharset
Description copied from interface:IParamCryptoHandlerProperties设置编码- Specified by:
setCharsetin interfaceIParamCryptoHandlerProperties- Parameters:
charset- 编码
-
isNeedEncryptInputParam
public boolean isNeedEncryptInputParam()Description copied from interface:IParamCryptoHandlerProperties判断是否强制要求入参加密- Specified by:
isNeedEncryptInputParamin interfaceIParamCryptoHandlerProperties- Returns:
- 是否强制要求入参加密
-
setNeedEncryptInputParam
public void setNeedEncryptInputParam(boolean needEncryptInputParam) Description copied from interface:IParamCryptoHandlerProperties设置是否强制要求入参加密- Specified by:
setNeedEncryptInputParamin interfaceIParamCryptoHandlerProperties- Parameters:
needEncryptInputParam- 是否强制要求入参加密
-
isNeedEncryptOutputParam
public boolean isNeedEncryptOutputParam()Description copied from interface:IParamCryptoHandlerProperties判断出参是否需要加密- Specified by:
isNeedEncryptOutputParamin interfaceIParamCryptoHandlerProperties- Returns:
- 出参是否需要加密
-
setNeedEncryptOutputParam
public void setNeedEncryptOutputParam(boolean needEncryptOutputParam) Description copied from interface:IParamCryptoHandlerProperties设置出参是否需要加密- Specified by:
setNeedEncryptOutputParamin interfaceIParamCryptoHandlerProperties- Parameters:
needEncryptOutputParam- 出参是否需要加密
-