public interface ApprovedSiteService
Modifier and Type | Method and Description |
---|---|
void |
clearApprovedSitesForClient(org.springframework.security.oauth2.provider.ClientDetails client)
Clear out any approved sites for a given client.
|
void |
clearExpiredSites()
Remove all expired approved sites fromt he data store.
|
ApprovedSite |
createApprovedSite(String clientId,
String userId,
Date timeoutDate,
Set<String> allowedScopes) |
Collection<ApprovedSite> |
getAll()
Return a collection of all ApprovedSites
|
List<OAuth2AccessTokenEntity> |
getApprovedAccessTokens(ApprovedSite approvedSite)
Return all approved access tokens for the site.
|
Collection<ApprovedSite> |
getByClientId(String clientId)
Get all sites associated with this client
|
Collection<ApprovedSite> |
getByClientIdAndUserId(String clientId,
String userId)
Return a collection of ApprovedSite managed by this repository matching the
provided client ID and user ID
|
ApprovedSite |
getById(Long id)
Get ApprovedSite for id
|
Collection<ApprovedSite> |
getByUserId(String userId)
Get all sites approved by this user
|
void |
remove(ApprovedSite approvedSite)
Remove the ApprovedSite
|
ApprovedSite |
save(ApprovedSite approvedSite)
Save an ApprovedSite
|
ApprovedSite createApprovedSite(String clientId, String userId, Date timeoutDate, Set<String> allowedScopes)
Collection<ApprovedSite> getAll()
Collection<ApprovedSite> getByClientIdAndUserId(String clientId, String userId)
clientId
- userId
- ApprovedSite save(ApprovedSite approvedSite)
approvedSite
- the ApprovedSite to be savedApprovedSite getById(Long id)
id
- id for ApprovedSitevoid remove(ApprovedSite approvedSite)
approvedSite
- the ApprovedSite to removeCollection<ApprovedSite> getByUserId(String userId)
userId
- Collection<ApprovedSite> getByClientId(String clientId)
clientId
- void clearApprovedSitesForClient(org.springframework.security.oauth2.provider.ClientDetails client)
client
- void clearExpiredSites()
List<OAuth2AccessTokenEntity> getApprovedAccessTokens(ApprovedSite approvedSite)
Copyright © 2018. All rights reserved.