Example usage for org.springframework.security.web.authentication.preauth PreAuthenticatedAuthenticationToken getAuthorities

List of usage examples for org.springframework.security.web.authentication.preauth PreAuthenticatedAuthenticationToken getAuthorities

Introduction

In this page you can find the example usage for org.springframework.security.web.authentication.preauth PreAuthenticatedAuthenticationToken getAuthorities.

Prototype

public Collection<GrantedAuthority> getAuthorities() 

Source Link

Usage

From source file:jp.pigumer.app.UserDetailsServiceImpl.java

@Override
public UserDetails loadUserDetails(PreAuthenticatedAuthenticationToken token) throws UsernameNotFoundException {
    LOG.info(Objects.toString(token, "null"));
    return new User(token.getName(), "<abc123>", token.getAuthorities());
}