@FrameworkRestController
@FrameworkMapping(value="/servers/{serverId}/clients")
public class AuthorizedClientEndpoint
extends Object
| Constructor and Description |
|---|
AuthorizedClientEndpoint(AuthorizedClientService<AuthorizedClient> authorizedClientService,
AuthorizationServerService<AuthorizationServer> authorizationServerService) |
| Modifier and Type | Method and Description |
|---|---|
AuthorizedClient |
createAuthorizedClient(String serverId,
AuthorizedClient authorizedClient) |
void |
delete(String serverId,
String id) |
org.springframework.data.domain.Page<AuthorizedClient> |
readAllAuthorizedClients(String serverId,
org.springframework.data.domain.Pageable pageable) |
AuthorizedClient |
readAuthorizedClientById(String serverId,
String id) |
AuthorizedClient |
replaceAuthorizedClientById(String serverId,
String id,
AuthorizedClient authorizedClient) |
public static final String BASE_URI
public AuthorizedClientEndpoint(AuthorizedClientService<AuthorizedClient> authorizedClientService, AuthorizationServerService<AuthorizationServer> authorizationServerService)
@FrameworkGetMapping
@Policy(permissionRoots="AUTHORIZATION_SERVER",
operationTypes=READ)
public org.springframework.data.domain.Page<AuthorizedClient> readAllAuthorizedClients(@PathVariable(value="serverId")
String serverId,
org.springframework.data.domain.Pageable pageable)
@FrameworkGetMapping(value="/{id}")
@Policy(permissionRoots="AUTHORIZATION_SERVER",
operationTypes=READ)
public AuthorizedClient readAuthorizedClientById(@PathVariable(value="serverId")
String serverId,
@PathVariable(value="id")
String id)
@FrameworkPutMapping(value="/{id}")
@Policy(permissionRoots="AUTHORIZATION_SERVER",
operationTypes=UPDATE)
public AuthorizedClient replaceAuthorizedClientById(@PathVariable(value="serverId")
String serverId,
@PathVariable(value="id")
String id,
@RequestBody
AuthorizedClient authorizedClient)
@FrameworkPostMapping
@Policy(permissionRoots="AUTHORIZATION_SERVER",
operationTypes=CREATE)
public AuthorizedClient createAuthorizedClient(@PathVariable(value="serverId")
String serverId,
@RequestBody
AuthorizedClient authorizedClient)
Copyright © 2021. All rights reserved.