Class JpaOAuth2AuthorizationConsentService

java.lang.Object
cn.herodotus.engine.oauth2.data.jpa.storage.JpaOAuth2AuthorizationConsentService
All Implemented Interfaces:
org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService

public class JpaOAuth2AuthorizationConsentService extends Object implements org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService

Description: 基于 JPA 的 OAuth2 认证服务

Author:
: gengwei.zheng
Date:
: 2022/2/25 22:15
  • Constructor Summary

    Constructors
    Constructor
    Description
    JpaOAuth2AuthorizationConsentService(HerodotusAuthorizationConsentService herodotusAuthorizationConsentService, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent
    findById(String registeredClientId, String principalName)
     
    void
    remove(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent)
     
    void
    save(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent)
     

    Methods inherited from class java.lang.Object

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

    • JpaOAuth2AuthorizationConsentService

      public JpaOAuth2AuthorizationConsentService(HerodotusAuthorizationConsentService herodotusAuthorizationConsentService, org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository)
  • Method Details

    • save

      public void save(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent)
      Specified by:
      save in interface org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
    • remove

      public void remove(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent)
      Specified by:
      remove in interface org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
    • findById

      public org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent findById(String registeredClientId, String principalName)
      Specified by:
      findById in interface org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService