Class ConfigOpenMetadataServerSecurityResource
java.lang.Object
org.odpi.openmetadata.adminservices.spring.ConfigOpenMetadataServerSecurityResource
@RestController
@RequestMapping("/open-metadata/admin-services/users/{userId}/servers/{serverName}/security")
public class ConfigOpenMetadataServerSecurityResource
extends Object
ConfigOpenMetadataServerSecurityResource provides the API to configure the security connector that validates
Open Metadata and Governance requests issued to a specific OMAG server.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclearServerSecurityConnection
(String userId, String serverName) Clear the connection object for the server security connector.getServerSecurityConnection
(String userId, String serverName) Return the connection object for the server security connector.setServerSecurityConnection
(String userId, String serverName, Connection connection) Override the existing server security connector.
-
Constructor Details
-
ConfigOpenMetadataServerSecurityResource
public ConfigOpenMetadataServerSecurityResource()
-
-
Method Details
-
setServerSecurityConnection
@PostMapping(path="/connection") public VoidResponse setServerSecurityConnection(@PathVariable String userId, @PathVariable String serverName, @RequestBody Connection connection) Override the existing server security connector.- Parameters:
userId
- calling user.serverName
- server to configureconnection
- connection used to create and configure the connector.- Returns:
- void response
-
getServerSecurityConnection
@GetMapping(path="/connection") public ConnectionResponse getServerSecurityConnection(@PathVariable String userId, @PathVariable String serverName) Return the connection object for the server security connector.- Parameters:
userId
- calling userserverName
- server to retrieve configuration from- Returns:
- connection response
-
clearServerSecurityConnection
@DeleteMapping(path="/connection") public VoidResponse clearServerSecurityConnection(@PathVariable String userId, @PathVariable String serverName) Clear the connection object for the server security connector. This sets the server security back to default of no authorization security.- Parameters:
userId
- calling userserverName
- server to configure- Returns:
- connection response
-