public interface PermissionService
Modifier and Type | Method and Description |
---|---|
PermissionTicket |
createTicket(ResourceSet resourceSet,
Set<String> scopes) |
PermissionTicket |
getByTicket(String ticket)
Read the permission associated with the given ticket.
|
PermissionTicket |
updateTicket(PermissionTicket ticket)
Save the updated permission ticket to the database.
|
PermissionTicket createTicket(ResourceSet resourceSet, Set<String> scopes)
resourceSet
- the resource set to create the permission onscopes
- the set of scopes that this permission is fororg.springframework.security.oauth2.common.exceptions.InsufficientScopeException
- if the scopes in scopes don't match those in resourceSet.getScopesPermissionTicket getByTicket(String ticket)
the
- ticket value to search onPermissionTicket updateTicket(PermissionTicket ticket)
ticket
- Copyright © 2018. All rights reserved.