我正在使用spring security和ldap进行身份验证。我已经决定了AccessDecisionManager的方法
public class CustomAccessDecisionManager extends AbstractAccessDecisionManager {
public void decide(Authentication authentication, Object filter,Collection<ConfigAttribute> configAttributes){
//I want to set specific value for
//each user here and want to get at controller
}
我想在decision()方法中设置一些值,并在控制器中使用此值。我想在这里为每个用户设置一些spring配置上下文或其他值。任何人都可以指导我怎么可能。提前谢谢。