Interface OAuth2AccessTokenRepository

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      StoredAccessToken findByAuthenticationId​(java.lang.String authenticationId)
      Find entity by authentication id
      java.util.stream.Stream<StoredAccessToken> findByClientId​(java.lang.String clientId)
      Find entity by client id
      java.util.stream.Stream<StoredAccessToken> findByClientIdAndUserName​(java.lang.String clientId, java.lang.String userName)
      Find entity by client id and username
      StoredAccessToken findByTokenId​(java.lang.String tokenId)
      Find entity by token id
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findOne
    • Method Detail

      • findByAuthenticationId

        StoredAccessToken findByAuthenticationId​(java.lang.String authenticationId)
        Find entity by authentication id
        Parameters:
        authenticationId - authentication id
        Returns:
        StoredAccessToken
      • findByClientIdAndUserName

        java.util.stream.Stream<StoredAccessToken> findByClientIdAndUserName​(java.lang.String clientId,
                                                                             java.lang.String userName)
        Find entity by client id and username
        Parameters:
        clientId - Client id
        userName - Username
        Returns:
        Stream of StoredAccessToken
      • findByClientId

        java.util.stream.Stream<StoredAccessToken> findByClientId​(java.lang.String clientId)
        Find entity by client id
        Parameters:
        clientId - client id
        Returns:
        Stream of StoredAccessToken