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
ResourceServerTokenServicesimplementation that combines the logic of theDefaultTokenServicesandUserInfoTokenServicesimplementations.- 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.OAuth2AuthenticationloadAuthentication(String accessToken)org.springframework.security.oauth2.common.OAuth2AccessTokenreadAccessToken(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:
loadAuthenticationin interfaceorg.springframework.security.oauth2.provider.token.ResourceServerTokenServices- Throws:
org.springframework.security.core.AuthenticationExceptionorg.springframework.security.oauth2.common.exceptions.InvalidTokenException
-
readAccessToken
public org.springframework.security.oauth2.common.OAuth2AccessToken readAccessToken(String accessToken)
- Specified by:
readAccessTokenin interfaceorg.springframework.security.oauth2.provider.token.ResourceServerTokenServices
-
-