类 OAuth2DeviceService

java.lang.Object
cn.herodotus.stirrup.data.crud.service.AbstractJpaService<OAuth2Device,String>
cn.herodotus.stirrup.oauth2.management.service.OAuth2DeviceService
所有已实现的接口:
cn.herodotus.stirrup.data.crud.service.JpaReadableService<OAuth2Device,String>, cn.herodotus.stirrup.data.crud.service.JpaWriteableService<OAuth2Device,String>

@Service public class OAuth2DeviceService extends cn.herodotus.stirrup.data.crud.service.AbstractJpaService<OAuth2Device,String>

Description: OAuth2DeviceService

作者:
: gengwei.zheng
Date:
: 2023/5/15 16:36
  • 构造器概要

    构造器
    构造器
    说明
    OAuth2DeviceService(org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository, cn.herodotus.stirrup.oauth2.data.jpa.repository.HerodotusRegisteredClientRepository herodotusRegisteredClientRepository, OAuth2DeviceRepository deviceRepository, OAuth2ScopeService scopeService)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    activate(String clientId, boolean isActivated)
     
    authorize(String deviceId, String[] scopeIds)
     
    void
     
    cn.herodotus.stirrup.data.crud.repository.BaseJpaRepository<OAuth2Device,String>
     
     
    boolean
    sync(org.springframework.security.oauth2.server.authorization.oidc.OidcClientRegistration oidcClientRegistration)
    客户端自动注册是将信息存储在 oauth2_registered_client 中。

    从类继承的方法 cn.herodotus.stirrup.data.crud.service.AbstractJpaService

    like

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 cn.herodotus.stirrup.data.crud.service.JpaReadableService

    count, count, existsById, findAll, findAll, findAll, findAll, findById, findByPage, findByPage, findByPage, findByPage, findByPage, findByPage, findByPage

    从接口继承的方法 cn.herodotus.stirrup.data.crud.service.JpaWriteableService

    delete, deleteAll, deleteAll, deleteAllInBatch, flush, save, saveAll, saveAllAndFlush
  • 构造器详细资料

    • OAuth2DeviceService

      public OAuth2DeviceService(org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository, cn.herodotus.stirrup.oauth2.data.jpa.repository.HerodotusRegisteredClientRepository herodotusRegisteredClientRepository, OAuth2DeviceRepository deviceRepository, OAuth2ScopeService scopeService)
  • 方法详细资料

    • getRepository

      public cn.herodotus.stirrup.data.crud.repository.BaseJpaRepository<OAuth2Device,String> getRepository()
    • saveAndFlush

      @Transactional(rollbackFor=java.lang.Exception.class) public OAuth2Device saveAndFlush(OAuth2Device entity)
    • deleteById

      @Transactional(rollbackFor=java.lang.Exception.class) public void deleteById(String id)
    • authorize

      @Transactional(rollbackFor=java.lang.Exception.class) public OAuth2Device authorize(String deviceId, String[] scopeIds)
    • sync

      public boolean sync(org.springframework.security.oauth2.server.authorization.oidc.OidcClientRegistration oidcClientRegistration)
      客户端自动注册是将信息存储在 oauth2_registered_client 中。 为了方便管理,将该条数据同步至 oauth2_device 表中。
      参数:
      oidcClientRegistration - OidcClientRegistration
      返回:
      是否同步成功
    • activate

      public boolean activate(String clientId, boolean isActivated)