Skip to content

Commit b0a22cc

Browse files
committed
javadoc
1 parent 250fc74 commit b0a22cc

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

polaris-core/src/main/java/org/apache/polaris/core/auth/PolarisAuthorizer.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,34 @@
2828
/** Interface for invoking authorization checks. */
2929
public 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(

0 commit comments

Comments
 (0)