@Beta public interface AuthorizationEnforcer
void enforce(EntityId entity, Principal principal, Action action) throws Exception
Principal for the specified Action on the specified
EntityId.entity - the EntityId on which authorization is to be enforcedprincipal - the Principal that performs the actionaction - the Action being performedUnauthorizedException - if the principal is not authorized to perform the specified action on the entityException - if any other errors occurred while performing the authorization enforcement checkvoid enforce(EntityId entity, Principal principal, Set<Action> actions) throws Exception
Principal for the specified actions on the
specified EntityId.entity - the EntityId on which authorization is to be enforcedprincipal - the Principal that performs the actionsactions - the actions being performedUnauthorizedException - if the principal is not authorized to perform the specified actions on the entityException - if any other errors occurred while performing the authorization enforcement checkCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.