Class GoogleTokenService
- java.lang.Object
-
- edu.cnm.deepdive.dominionendpointtestspring.service.GoogleTokenService
-
- All Implemented Interfaces:
org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
@Component public class GoogleTokenService extends java.lang.Object implements org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
-
-
Constructor Summary
Constructors Constructor Description GoogleTokenService(java.lang.String clientId, PlayerService playerService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.oauth2.provider.OAuth2Authentication
loadAuthentication(java.lang.String token)
org.springframework.security.oauth2.common.OAuth2AccessToken
readAccessToken(java.lang.String s)
-
-
-
Constructor Detail
-
GoogleTokenService
public GoogleTokenService(@Value("${oauth.clientId}") java.lang.String clientId, PlayerService playerService)
-
-
Method Detail
-
loadAuthentication
public org.springframework.security.oauth2.provider.OAuth2Authentication loadAuthentication(java.lang.String token) throws org.springframework.security.core.AuthenticationException, org.springframework.security.oauth2.common.exceptions.InvalidTokenException
- Specified by:
loadAuthentication
in interfaceorg.springframework.security.oauth2.provider.token.ResourceServerTokenServices
- Throws:
org.springframework.security.core.AuthenticationException
org.springframework.security.oauth2.common.exceptions.InvalidTokenException
-
readAccessToken
public org.springframework.security.oauth2.common.OAuth2AccessToken readAccessToken(java.lang.String s)
- Specified by:
readAccessToken
in interfaceorg.springframework.security.oauth2.provider.token.ResourceServerTokenServices
-
-