Class 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 the DefaultTokenServices and UserInfoTokenServices implementations.
    Since:
    3.0.0
    Author:
    Wouter Eerdekens, Jules Houben
    • 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 instance
        userInfoTokenServices - 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 interface org.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 interface org.springframework.security.oauth2.provider.token.ResourceServerTokenServices