Example usage for org.springframework.security.web.method.annotation AuthenticationPrincipalArgumentResolver AuthenticationPrincipalArgumentResolver

List of usage examples for org.springframework.security.web.method.annotation AuthenticationPrincipalArgumentResolver AuthenticationPrincipalArgumentResolver

Introduction

In this page you can find the example usage for org.springframework.security.web.method.annotation AuthenticationPrincipalArgumentResolver AuthenticationPrincipalArgumentResolver.

Prototype

AuthenticationPrincipalArgumentResolver

Source Link

Usage

From source file:fi.helsinki.opintoni.config.WebConfig.java

@Override
public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
    argumentResolvers.addAll(Lists.newArrayList(new AuthenticationPrincipalArgumentResolver(),
            new StudentNumberArgumentResolver(securityUtils), new TeacherNumberArgumentResolver(securityUtils),
            new UserIdArgumentResolver(userService, securityUtils),
            new UsernameArgumentResolver(userService, securityUtils)));
}

From source file:cz.muni.fi.editor.webapp.config.MvcConfiguration.java

@Bean
public AuthenticationPrincipalArgumentResolver authenticationPrincipalArgumentResolver() {
    return new AuthenticationPrincipalArgumentResolver();
}