Package edu.ucsb.cs156.example.services
Class GrantedAuthoritiesService
java.lang.Object
edu.ucsb.cs156.example.services.GrantedAuthoritiesService
The is a service that retrieves and logs the granted authorities for the
 current user's authentication.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCollection<? extends org.springframework.security.core.GrantedAuthority> The function retrieves and logs the granted authorities from the current security context in a Java application.
- 
Constructor Details- 
GrantedAuthoritiesServicepublic GrantedAuthoritiesService()
 
- 
- 
Method Details- 
getGrantedAuthoritiespublic Collection<? extends org.springframework.security.core.GrantedAuthority> getGrantedAuthorities()The function retrieves and logs the granted authorities from the current security context in a Java application.- Returns:
- collection of authorities granted to the currently authenticated user.
 
 
-