Package edu.ucsb.cs156.example.services
Class CurrentUserServiceImpl
java.lang.Object
edu.ucsb.cs156.example.services.CurrentUserService
edu.ucsb.cs156.example.services.CurrentUserServiceImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetOAuth2AuthenticatedUser
(org.springframework.security.core.context.SecurityContext securityContext, org.springframework.security.core.Authentication authentication) Collection<? extends org.springframework.security.core.GrantedAuthority>
getRoles()
getUser()
Methods inherited from class edu.ucsb.cs156.example.services.CurrentUserService
isLoggedIn
-
Constructor Details
-
CurrentUserServiceImpl
public CurrentUserServiceImpl()
-
-
Method Details
-
getCurrentUser
- Specified by:
getCurrentUser
in classCurrentUserService
-
getOAuth2AuthenticatedUser
public User getOAuth2AuthenticatedUser(org.springframework.security.core.context.SecurityContext securityContext, org.springframework.security.core.Authentication authentication) -
getUser
- Specified by:
getUser
in classCurrentUserService
-
getRoles
- Specified by:
getRoles
in classCurrentUserService
-