adutra commented on code in PR #5140:
URL: https://github.com/apache/polaris/pull/5140#discussion_r3657983713
##########
polaris-core/src/main/java/org/apache/polaris/core/auth/PolarisPrincipal.java:
##########
@@ -19,53 +19,14 @@
package org.apache.polaris.core.auth;
import java.security.Principal;
-import java.util.Map;
-import java.util.Optional;
import java.util.Set;
+import org.apache.polaris.core.collection.AttributeMap;
import org.apache.polaris.immutables.PolarisImmutable;
-import org.immutables.value.Value;
/** Represents a {@link Principal} in the Polaris system. */
@PolarisImmutable
public interface PolarisPrincipal extends Principal {
- /**
- * Attribute key for the principal entity attribute, of type {@link
- * org.apache.polaris.core.entity.PrincipalEntity}.
- *
- * <p>Note: callers must never assume that this attribute is present.
- */
- String PRINCIPAL_ENTITY_ATTRIBUTE_KEY =
"org.apache.polaris.core.auth.PRINCIPAL_ENTITY";
Review Comment:
Moved to a separate `PolarisPrincipalAttributes` class.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]