Interface OpenMetadataServiceSecurity
- All Known Implementing Classes:
CocoPharmaSecretsSecurityConnector
,CocoPharmaServerSecurityConnector
,OpenMetadataServerSecurityVerifier
public interface OpenMetadataServiceSecurity
OpenMetadataServiceSecurity provides the interface for a plugin connector that validates whether a calling
user can access a specific metadata service. It is called within the context of a specific OMAG Server.
Each OMAG Server can define its own plugin connector implementation and will have its own instance
of the connector. However the server name is supplied so a single connector can use it for logging
error messages and locating the valid user list for the server.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validateUserForService
(String userId, String serviceName) Check that the calling user is authorized to issue this request.void
validateUserForServiceOperation
(String userId, String serviceName, String operationName) Check that the calling user is authorized to issue this specific request.
-
Method Details
-
validateUserForService
Check that the calling user is authorized to issue this request.- Parameters:
userId
- calling userserviceName
- name of called service- Throws:
UserNotAuthorizedException
- the user is not authorized to access this service
-
validateUserForServiceOperation
void validateUserForServiceOperation(String userId, String serviceName, String operationName) throws UserNotAuthorizedException Check that the calling user is authorized to issue this specific request.- Parameters:
userId
- calling userserviceName
- name of called serviceoperationName
- name of called operation- Throws:
UserNotAuthorizedException
- the user is not authorized to access this service
-