File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
polaris-core/src/main/java/org/apache/polaris/core/auth Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 2828/** Interface for invoking authorization checks. */
2929public interface PolarisAuthorizer {
3030
31+ /**
32+ * Whether the implementation expects Polaris principal roles to be present in the {@code
33+ * activatedEntities} parameters of the {@link #authorizeOrThrow(PolarisPrincipal, Set,
34+ * PolarisAuthorizableOperation, PolarisResolvedPathWrapper, PolarisResolvedPathWrapper)}
35+ * functions.
36+ *
37+ * <p>If {@code false}, call sites may choose to not pass principal roles.
38+ */
3139 boolean requiresPrincipalRoles ();
3240
41+ /**
42+ * Whether the implementation expects Polaris catalog roles to be present in the {@code
43+ * activatedEntities} parameters of the {@link #authorizeOrThrow(PolarisPrincipal, Set,
44+ * PolarisAuthorizableOperation, PolarisResolvedPathWrapper, PolarisResolvedPathWrapper)}
45+ * functions.
46+ *
47+ * <p>If {@code false}, call sites may choose to not pass catalog roles.
48+ */
3349 boolean requiresCatalogRoles ();
3450
51+ /**
52+ * Whether the implementation expects the {@link
53+ * org.apache.polaris.core.persistence.ResolvedPolarisEntity}s in the {@link
54+ * PolarisResolvedPathWrapper} instances of the {@code target} and {@code secondary} parameters to
55+ * contain grant records information.
56+ *
57+ * <p>If {@code false}, call sites may choose to not pass grant records.
58+ */
3559 boolean requiresResolvedEntities ();
3660
3761 void authorizeOrThrow (
You can’t perform that action at this time.
0 commit comments