List of usage examples for org.springframework.security.core Authentication getAuthorities
Collection<? extends GrantedAuthority> getAuthorities();
AuthenticationManager
to indicate the authorities that the principal has been granted. From source file:ro.cs.cm.web.security.CMRoleVoter.java
GrantedAuthority[] extractAuthorities(Authentication authentication) { return (GrantedAuthority[]) authentication.getAuthorities().toArray(); }