Class OMAGServerAdminSecurityServices
- java.lang.Object
-
- org.odpi.openmetadata.adminservices.OMAGServerAdminSecurityServices
-
public class OMAGServerAdminSecurityServices extends Object
OMAGServerAdminSecurityServices provides the capability to set up open metadata security connectors. The open metadata security connectors validate the authorization of a user to access specific services and metadata in Egeria. There are 2 connectors: The Open Metadata Platform Security Connector verifies the authorization of calls to the OMAG Server Platform Services that are independent of a server. The Open Metadata Server Security Connector verifies the authorization of calls to a specific server. The connectors are configured with a Connection. The connection for the Open Metadata Server Security Connector is stored in the server's configuration document. The connection for the Open Metadata Platform Security Connector is added dynamically when the platform starts.
-
-
Constructor Summary
Constructors Constructor Description OMAGServerAdminSecurityServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoidResponseclearPlatformSecurityConnection(String userId)Clear the connection object for the platform security connector.VoidResponseclearServerSecurityConnection(String userId, String serverName)Clear the connection object for the server security connector.ConnectionResponsegetPlatformSecurityConnection(String userId)Return the connection object for the platform security connector.ConnectionResponsegetServerSecurityConnection(String userId, String serverName)Return the connection object for the server security connector.VoidResponsesetPlatformSecurityConnection(String userId, PlatformSecurityRequestBody requestBody)Override the default platform security connector.VoidResponsesetServerSecurityConnection(String userId, String serverName, Connection connection)Override the default server security connector.
-
-
-
Method Detail
-
setPlatformSecurityConnection
public VoidResponse setPlatformSecurityConnection(String userId, PlatformSecurityRequestBody requestBody)
Override the default platform security connector.- Parameters:
userId- calling user.requestBody- containing serverPlatformURL (URL Root of the server platform) and connection used to create and configure the connector.- Returns:
- void response
-
getPlatformSecurityConnection
public ConnectionResponse getPlatformSecurityConnection(String userId)
Return the connection object for the platform security connector.- Parameters:
userId- calling user- Returns:
- connection response
-
clearPlatformSecurityConnection
public VoidResponse clearPlatformSecurityConnection(String userId)
Clear the connection object for the platform security connector. This sets the platform security back to default.- Parameters:
userId- calling user- Returns:
- connection response
-
setServerSecurityConnection
public VoidResponse setServerSecurityConnection(String userId, String serverName, Connection connection)
Override the default server security connector.- Parameters:
userId- calling user.serverName- server to configureconnection- connection used to create and configure the connector.- Returns:
- void response
-
getServerSecurityConnection
public ConnectionResponse getServerSecurityConnection(String userId, String serverName)
Return the connection object for the server security connector.- Parameters:
userId- calling userserverName- server to retrieve configuration from- Returns:
- connection response
-
clearServerSecurityConnection
public VoidResponse clearServerSecurityConnection(String userId, String serverName)
Clear the connection object for the server security connector. This sets the server security back to default.- Parameters:
userId- calling userserverName- server to configure- Returns:
- connection response
-
-