Class ConfigOpenMetadataServerSecurityResource
java.lang.Object
org.odpi.openmetadata.adminservices.spring.ConfigOpenMetadataServerSecurityResource
@RestController
@RequestMapping("/open-metadata/admin-services/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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclearServerSecurityConnection(String serverName) Clear the connection object for the server security connector.getServerSecurityConnection(String serverName) Return the connection object for the server security connector.setServerSecurityConnection(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 serverName, @RequestBody Connection connection) Override the existing server security connector.- Parameters:
serverName- server to configureconnection- connection used to create and configure the connector.- Returns:
- void response
-
getServerSecurityConnection
@GetMapping(path="/connection") public ConnectionResponse getServerSecurityConnection(@PathVariable String serverName) Return the connection object for the server security connector.- Parameters:
serverName- server to retrieve configuration from- Returns:
- connection response
-
clearServerSecurityConnection
@DeleteMapping(path="/connection") public VoidResponse clearServerSecurityConnection(@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:
serverName- server to configure- Returns:
- connection response
-