Class DevTokenService

java.lang.Object
org.springframework.security.oauth2.provider.token.DefaultTokenServices
io.jmix.securityoauth2.impl.DevTokenService
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices, org.springframework.security.oauth2.provider.token.ConsumerTokenServices, org.springframework.security.oauth2.provider.token.ResourceServerTokenServices

public class DevTokenService extends org.springframework.security.oauth2.provider.token.DefaultTokenServices
  • Constructor Summary

    Constructors
    Constructor
    Description
    DevTokenService(UserRepository userRepository, SecurityOAuth2Properties oauth2Properties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.security.core.Authentication
     
    protected org.springframework.security.oauth2.provider.OAuth2Request
     
    org.springframework.security.oauth2.provider.OAuth2Authentication
    loadAuthentication(String accessTokenValue)
     

    Methods inherited from class org.springframework.security.oauth2.provider.token.DefaultTokenServices

    afterPropertiesSet, createAccessToken, getAccessToken, getAccessTokenValiditySeconds, getClientId, getRefreshTokenValiditySeconds, isExpired, isSupportRefreshToken, readAccessToken, refreshAccessToken, revokeToken, setAccessTokenValiditySeconds, setAuthenticationManager, setClientDetailsService, setRefreshTokenValiditySeconds, setReuseRefreshToken, setSupportRefreshToken, setTokenEnhancer, setTokenStore

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • loadAuthentication

      public org.springframework.security.oauth2.provider.OAuth2Authentication loadAuthentication(String accessTokenValue) 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
      Overrides:
      loadAuthentication in class org.springframework.security.oauth2.provider.token.DefaultTokenServices
      Throws:
      org.springframework.security.core.AuthenticationException
      org.springframework.security.oauth2.common.exceptions.InvalidTokenException
    • buildRequest

      protected org.springframework.security.oauth2.provider.OAuth2Request buildRequest()
    • buildAuthentication

      protected org.springframework.security.core.Authentication buildAuthentication()