Interface OpenMetadataPlatformSecurity
- All Known Implementing Classes:
CocoPharmaPlatformSecurityConnector
,CocoPharmaPlatformSecurityConnectorTokenBased
,CocoPharmaSecretsSecurityConnector
,OpenMetadataPlatformSecurityConnector
public interface OpenMetadataPlatformSecurity
OpenMetadataPlatformSecurity provides the interface for a security connector that validates whether a calling
user can access any service on an OMAG Server Platform. It is called within the context of a specific
OMAG Server Platform request.
Each OMAG Server can define its own plugin connector implementation and will have its own instance
of the connector.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setServerPlatformURL
(String serverURLRoot) Set up the URL Root for the platform where this is running.void
Check that the calling user is authorized to issue diagnostic requests to the OMAG Server Platform.void
Check that the calling user is authorized to issue operator requests to the OMAG Server Platform.void
validateUserForNewServer
(String userId) Check that the calling user is authorized to create new servers.
-
Method Details
-
setServerPlatformURL
Set up the URL Root for the platform where this is running.- Parameters:
serverURLRoot
- url root
-
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
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
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
-