| Constructor and Description |
|---|
CipherFilter(Cipher cipher)
构造函数
|
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(IoSession session,
Object object)
过滤器解密函数,接收事件(onRecive)前调用
onRecive事件前调用
|
Object |
encode(IoSession session,
Object object)
过滤器加密函数,发送事件(onSend)前调用
send事件前调用
|
public CipherFilter(Cipher cipher)
cipher - 包含对称密钥的算法类public Object decode(IoSession session, Object object) throws IoFilterException
IoFilterdecode in interface IoFiltersession - session 对象object - 解码对象,上一个过滤器的返回值IoFilterException - 过滤器异常public Object encode(IoSession session, Object object) throws IoFilterException
IoFilterencode in interface IoFiltersession - session 对象object - 编码对象,上一个过滤器的返回值IoFilterException - 过滤器异常Copyright © 2019 Voovan. All rights reserved.