package cn.stylefeng.roses.kernel.security.request.encrypt.holder;

import cn.stylefeng.roses.kernel.rule.threadlocal.RemoveThreadLocalApi;
import org.springframework.stereotype.Component;

/**
 * 清除加解密的相关ThreadLocal
 *
 * @author fengshuonan
 * @since 2021/10/29 11:37
 */
@Component
public class EncryptRemoveThreadLocalHolder implements RemoveThreadLocalApi {

    @Override
    public void removeThreadLocalAction() {
        EncryptionHolder.clearAesKey();
    }

}
