类 DefaultCipherManager
java.lang.Object
cn.zhxu.toys.cipher.DefaultCipherManager
- 所有已实现的接口:
CipherManager,Decryptor,Encryptor,org.springframework.beans.factory.InitializingBean
public class DefaultCipherManager
extends Object
implements CipherManager, org.springframework.beans.factory.InitializingBean
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidbyte[]decrypt(byte[] cipherBytes) 解密byte[]decrypt(byte[] secretBytes, byte[] cipherBytes) 解密解密解密byte[]encrypt(byte[] plainBytes) 加密byte[]encrypt(byte[] secretBytes, byte[] plainBytes) 加密加密加密void初始化voidsetDecryptor(Decryptor decryptor) voidsetEncryptor(Encryptor encryptor) void
-
构造器详细资料
-
DefaultCipherManager
public DefaultCipherManager()
-
-
方法详细资料
-
afterPropertiesSet
- 指定者:
afterPropertiesSet在接口中org.springframework.beans.factory.InitializingBean- 抛出:
Exception
-
init
从接口复制的说明:Encryptor初始化 -
encrypt
从接口复制的说明:Encryptor加密 -
encrypt
从接口复制的说明:Encryptor加密 -
encrypt
public byte[] encrypt(byte[] secretBytes, byte[] plainBytes) 从接口复制的说明:Encryptor加密 -
decrypt
从接口复制的说明:Decryptor解密 -
decrypt
从接口复制的说明:Decryptor解密 -
encrypt
public byte[] encrypt(byte[] plainBytes) 从接口复制的说明:Encryptor加密 -
decrypt
public byte[] decrypt(byte[] cipherBytes) 从接口复制的说明:Decryptor解密 -
decrypt
public byte[] decrypt(byte[] secretBytes, byte[] cipherBytes) 从接口复制的说明:Decryptor解密 -
getSecret
-
setSecret
-
getEncryptor
-
setEncryptor
-
getDecryptor
-
setDecryptor
-