Constructor and Description |
---|
TokenAPI() |
Modifier and Type | Method and Description |
---|---|
String |
deleteAccessTokenById(Long id,
org.springframework.ui.ModelMap m,
Principal p) |
String |
deleteRefreshTokenById(Long id,
org.springframework.ui.ModelMap m,
Principal p) |
String |
getAccessTokenById(Long id,
org.springframework.ui.ModelMap m,
Principal p) |
String |
getAccessTokensByClientId(String clientId,
org.springframework.ui.ModelMap m,
Principal p) |
String |
getAllAccessTokens(org.springframework.ui.ModelMap m,
Principal p) |
String |
getAllRefreshTokens(org.springframework.ui.ModelMap m,
Principal p) |
String |
getRefreshTokenById(Long id,
org.springframework.ui.ModelMap m,
Principal p) |
String |
getRegistrationTokenByClientId(String clientId,
org.springframework.ui.ModelMap m,
Principal p) |
String |
rotateRegistrationTokenByClientId(String clientId,
org.springframework.ui.ModelMap m,
Principal p) |
public static final String URL
public TokenAPI()
@RequestMapping(value="/access", method=GET, produces="application/json") public String getAllAccessTokens(org.springframework.ui.ModelMap m, Principal p)
@RequestMapping(value="/access/{id}", method=GET, produces="application/json") public String getAccessTokenById(@PathVariable(value="id") Long id, org.springframework.ui.ModelMap m, Principal p)
@RequestMapping(value="/access/{id}", method=DELETE, produces="application/json") public String deleteAccessTokenById(@PathVariable(value="id") Long id, org.springframework.ui.ModelMap m, Principal p)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')") @RequestMapping(value="/client/{clientId}", method=GET, produces="application/json") public String getAccessTokensByClientId(@PathVariable(value="clientId") String clientId, org.springframework.ui.ModelMap m, Principal p)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')") @RequestMapping(value="/registration/{clientId}", method=GET, produces="application/json") public String getRegistrationTokenByClientId(@PathVariable(value="clientId") String clientId, org.springframework.ui.ModelMap m, Principal p)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')") @RequestMapping(value="/registration/{clientId}", method=PUT, produces="application/json") public String rotateRegistrationTokenByClientId(@PathVariable(value="clientId") String clientId, org.springframework.ui.ModelMap m, Principal p)
@RequestMapping(value="/refresh", method=GET, produces="application/json") public String getAllRefreshTokens(org.springframework.ui.ModelMap m, Principal p)
@RequestMapping(value="/refresh/{id}", method=GET, produces="application/json") public String getRefreshTokenById(@PathVariable(value="id") Long id, org.springframework.ui.ModelMap m, Principal p)
@RequestMapping(value="/refresh/{id}", method=DELETE, produces="application/json") public String deleteRefreshTokenById(@PathVariable(value="id") Long id, org.springframework.ui.ModelMap m, Principal p)
Copyright © 2018. All rights reserved.