Class OpenMetadataPlatformSecurityVerifier
java.lang.Object
org.odpi.openmetadata.metadatasecurity.server.OpenMetadataPlatformSecurityVerifier
OpenMetadataPlatformSecurityVerifier provides the plug-in point for the open metadata platform connector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Clear the connection object for the configuration store.static Connection
getPlatformSecurityConnection
(String userId) Return the connection object for the configuration store.static OpenMetadataUserAccount
Return information about a user.static void
setPlatformSecurityConnection
(String userId, String serverPlatformURL, Connection connection) Override the default location of the configuration documents.static void
Check that the calling user is authorized to issue diagnostic requests to the OMAG Server Platform.static void
Check that the calling user is authorized to issue operator requests to the OMAG Server Platform.static void
validateUserForNewServer
(String userId) Check that the calling user is authorized to create new servers.
-
Constructor Details
-
OpenMetadataPlatformSecurityVerifier
public OpenMetadataPlatformSecurityVerifier()
-
-
Method Details
-
setPlatformSecurityConnection
public static void setPlatformSecurityConnection(String userId, String serverPlatformURL, Connection connection) throws InvalidParameterException, UserNotAuthorizedException Override the default location of the configuration documents.- Parameters:
userId
- calling user.serverPlatformURL
- URL Root of the server platform.connection
- connection used to create and configure the connector that interacts with the real store.- Throws:
InvalidParameterException
- one of the properties is either null or invalidUserNotAuthorizedException
- the user is not authorized to access this platform
-
getPlatformSecurityConnection
public static Connection getPlatformSecurityConnection(String userId) throws UserNotAuthorizedException Return the connection object for the configuration store. Null is returned if the server should use the default store.- Parameters:
userId
- calling user- Returns:
- connection response
- Throws:
UserNotAuthorizedException
- the user is not authorized to access this platform
-
clearPlatformSecurityConnection
Clear the connection object for the configuration store. Null is returned if the server should use the default store.- Parameters:
userId
- calling user- Throws:
UserNotAuthorizedException
-
getUser
Return information about a user.- Parameters:
userId
- user account identifier- Returns:
- known details of the user
-
validateUserForNewServer
Check that the calling user is authorized to create new servers.- Parameters:
userId
- calling user- Throws:
UserNotAuthorizedException
- the user is not authorized to access this platform
-
validateUserAsOperatorForPlatform
public static void validateUserAsOperatorForPlatform(String userId) throws UserNotAuthorizedException Check that the calling user is authorized to issue operator requests to the OMAG Server Platform.- Parameters:
userId
- calling user- Throws:
UserNotAuthorizedException
- the user is not authorized to issue operator commands to this platform
-
validateUserAsInvestigatorForPlatform
public static void validateUserAsInvestigatorForPlatform(String userId) throws UserNotAuthorizedException Check that the calling user is authorized to issue diagnostic requests to the OMAG Server Platform.- Parameters:
userId
- calling user- Throws:
UserNotAuthorizedException
- the user is not authorized to issue diagnostic commands to this platform
-