Class HawaiiTokenServices
- java.lang.Object
-
- org.hawaiiframework.security.oauth2.provider.token.HawaiiTokenServices
-
- All Implemented Interfaces:
org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
public class HawaiiTokenServices extends Object implements org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
ResourceServerTokenServices
implementation that combines the logic of theDefaultTokenServices
andUserInfoTokenServices
implementations.- Since:
- 3.0.0
- Author:
- Wouter Eerdekens, Jules Houben
-
-
Constructor Summary
Constructors Constructor Description HawaiiTokenServices(org.springframework.security.oauth2.provider.token.DefaultTokenServices defaultTokenServices, org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoTokenServices userInfoTokenServices, Cache<org.springframework.security.core.Authentication> cache)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.oauth2.provider.OAuth2Authentication
loadAuthentication(String accessToken)
org.springframework.security.oauth2.common.OAuth2AccessToken
readAccessToken(String accessToken)
-
-
-
Constructor Detail
-
HawaiiTokenServices
public HawaiiTokenServices(org.springframework.security.oauth2.provider.token.DefaultTokenServices defaultTokenServices, org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoTokenServices userInfoTokenServices, Cache<org.springframework.security.core.Authentication> cache)
Constructor.- Parameters:
defaultTokenServices
- the defaultTokenServices instanceuserInfoTokenServices
- the userInfoTokenServices instance
-
-
Method Detail
-
loadAuthentication
public org.springframework.security.oauth2.provider.OAuth2Authentication loadAuthentication(String accessToken) 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(String accessToken)
- Specified by:
readAccessToken
in interfaceorg.springframework.security.oauth2.provider.token.ResourceServerTokenServices
-
-