@Controller public class AdminController extends Object
Constructor and Description |
---|
AdminController() |
Modifier and Type | Method and Description |
---|---|
Collection<OAuth2AccessToken> |
listTokensForClient(String client) |
Collection<OAuth2AccessToken> |
listTokensForUser(String client,
String user,
Principal principal) |
org.springframework.http.ResponseEntity<Void> |
revokeToken(String user,
String token,
Principal principal) |
void |
setTokenServices(ConsumerTokenServices tokenServices) |
void |
setTokenStore(TokenStore tokenStore) |
void |
setUserApprovalHandler(SparklrUserApprovalHandler userApprovalHandler) |
void |
startCaching() |
void |
stopCaching() |
@RequestMapping(value="/oauth/cache_approvals") @ResponseStatus(value=NO_CONTENT) public void startCaching() throws Exception
Exception
@RequestMapping(value="/oauth/uncache_approvals") @ResponseStatus(value=NO_CONTENT) public void stopCaching() throws Exception
Exception
@RequestMapping(value="/oauth/clients/{client}/users/{user}/tokens") @ResponseBody public Collection<OAuth2AccessToken> listTokensForUser(@PathVariable String client, @PathVariable String user, Principal principal) throws Exception
Exception
@RequestMapping(value="/oauth/users/{user}/tokens/{token}", method=DELETE) public org.springframework.http.ResponseEntity<Void> revokeToken(@PathVariable String user, @PathVariable String token, Principal principal) throws Exception
Exception
@RequestMapping(value="/oauth/clients/{client}/tokens") @ResponseBody public Collection<OAuth2AccessToken> listTokensForClient(@PathVariable String client) throws Exception
Exception
public void setUserApprovalHandler(SparklrUserApprovalHandler userApprovalHandler)
userApprovalHandler
- the userApprovalHandler to setpublic void setTokenServices(ConsumerTokenServices tokenServices)
tokenServices
- the consumerTokenServices to setpublic void setTokenStore(TokenStore tokenStore)
tokenStore
- the tokenStore to setCopyright © 2014. All rights reserved.