package com.qianwen.core.secure.handler; import java.util.List; import com.qianwen.core.secure.interceptor.AuthInterceptor; import com.qianwen.core.secure.interceptor.BasicInterceptor; import com.qianwen.core.secure.interceptor.ClientInterceptor; import com.qianwen.core.secure.interceptor.SignInterceptor; import com.qianwen.core.secure.interceptor.TokenInterceptor; import com.qianwen.core.secure.props.AuthSecure; import com.qianwen.core.secure.props.BasicSecure; import com.qianwen.core.secure.props.SignSecure; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; public class SecureHandlerHandler implements ISecureHandler { @Override public HandlerInterceptorAdapter tokenInterceptor() { return new TokenInterceptor(); } @Override public HandlerInterceptorAdapter authInterceptor(List authSecures) { return new AuthInterceptor(authSecures); } @Override // org.springblade.core.secure.handler.ISecureHandler public HandlerInterceptorAdapter basicInterceptor(List basicSecures) { return new BasicInterceptor(basicSecures); } @Override // org.springblade.core.secure.handler.ISecureHandler public HandlerInterceptorAdapter signInterceptor(List signSecures) { return new SignInterceptor(signSecures); } @Override // org.springblade.core.secure.handler.ISecureHandler public HandlerInterceptorAdapter clientInterceptor(String clientId) { return new ClientInterceptor(clientId); } }