Class IridaOAuth2AuthorizationService

  • All Implemented Interfaces:
    org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService

    public class IridaOAuth2AuthorizationService
    extends org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService
    A customized version of JdbcOAuth2AuthorizationService that adds a method to find OAuth2Authorizations with OAuth2AccessTokens for a specific RegisteredClient.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService

        org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService.OAuth2AuthorizationParametersMapper, org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService.OAuth2AuthorizationRowMapper
    • Constructor Summary

      Constructors 
      Constructor Description
      IridaOAuth2AuthorizationService​(org.springframework.jdbc.core.JdbcOperations jdbcOperations, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.springframework.security.oauth2.server.authorization.OAuth2Authorization> findAccessTokensByRegisteredClientId​(java.lang.String registeredClientId)  
      org.springframework.security.oauth2.server.authorization.OAuth2Authorization findById​(java.lang.String id)  
      org.springframework.security.oauth2.server.authorization.OAuth2Authorization findByToken​(java.lang.String token, org.springframework.security.oauth2.core.OAuth2TokenType tokenType)  
      void remove​(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)  
      void save​(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)  
      • Methods inherited from class org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService

        getAuthorizationParametersMapper, getAuthorizationRowMapper, getJdbcOperations, getLobHandler, setAuthorizationParametersMapper, setAuthorizationRowMapper
      • Methods inherited from class java.lang.Object

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

      • IridaOAuth2AuthorizationService

        public IridaOAuth2AuthorizationService​(org.springframework.jdbc.core.JdbcOperations jdbcOperations,
                                               org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository)
    • Method Detail

      • findAccessTokensByRegisteredClientId

        public java.util.List<org.springframework.security.oauth2.server.authorization.OAuth2Authorization> findAccessTokensByRegisteredClientId​(java.lang.String registeredClientId)
      • findByToken

        public org.springframework.security.oauth2.server.authorization.OAuth2Authorization findByToken​(java.lang.String token,
                                                                                                        @Nullable
                                                                                                        org.springframework.security.oauth2.core.OAuth2TokenType tokenType)
        Specified by:
        findByToken in interface org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
        Overrides:
        findByToken in class org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService
      • findById

        public org.springframework.security.oauth2.server.authorization.OAuth2Authorization findById​(java.lang.String id)
        Specified by:
        findById in interface org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
        Overrides:
        findById in class org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService
      • remove

        public void remove​(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)
        Specified by:
        remove in interface org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
        Overrides:
        remove in class org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService
      • save

        public void save​(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)
        Specified by:
        save in interface org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
        Overrides:
        save in class org.springframework.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService