Package io.camunda.security.reader
Interface ResourceAccessProvider
public interface ResourceAccessProvider
-
Method Summary
Modifier and TypeMethodDescription<T> ResourceAccesshasResourceAccess(CamundaAuthentication authentication, Authorization<T> requiredAuthorization, T resource) Returns aResourceAccessallowing or denying access to the given resource.<T> ResourceAccesshasResourceAccessByResourceId(CamundaAuthentication authentication, Authorization<T> requiredAuthorization, String resourceId) Returns aResourceAccessallowing or denying access to the given resource id.<T> ResourceAccessresolveResourceAccess(CamundaAuthentication authentication, Authorization<T> requiredAuthorization)
-
Method Details
-
resolveResourceAccess
<T> ResourceAccess resolveResourceAccess(CamundaAuthentication authentication, Authorization<T> requiredAuthorization) Resolves the givenauthenticationandrequiredAuthorizationinto aResourceAccess. The resultingResourceAccess.authorization()shall contain the resource ids the principal is granted to access if access is not denied. -
hasResourceAccess
<T> ResourceAccess hasResourceAccess(CamundaAuthentication authentication, Authorization<T> requiredAuthorization, T resource) Returns aResourceAccessallowing or denying access to the given resource. -
hasResourceAccessByResourceId
<T> ResourceAccess hasResourceAccessByResourceId(CamundaAuthentication authentication, Authorization<T> requiredAuthorization, String resourceId) Returns aResourceAccessallowing or denying access to the given resource id.
-