XJDKC commented on code in PR #2759:
URL: https://github.com/apache/polaris/pull/2759#discussion_r2412070349


##########
polaris-core/src/main/java/org/apache/polaris/core/credentials/connection/CatalogAccessProperty.java:
##########
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.polaris.core.credentials.connection;
+
+import org.apache.iceberg.aws.AwsProperties;
+
+/**
+ * A subset of Iceberg catalog properties recognized by Polaris.
+ *
+ * <p>Most of these properties are meant to initialize Catalog objects for 
accessing the remote
+ * Catalog service.
+ */
+public enum CatalogAccessProperty {
+  AWS_ACCESS_KEY_ID(String.class, AwsProperties.REST_ACCESS_KEY_ID, "the aws 
access key id", true),
+  AWS_SECRET_ACCESS_KEY(
+      String.class, AwsProperties.REST_SECRET_ACCESS_KEY, "the aws access key 
secret", true),
+  AWS_SESSION_TOKEN(
+      String.class, AwsProperties.REST_SESSION_TOKEN, "the aws scoped access 
token", true),
+  EXPIRATION_TIME(

Review Comment:
   Another usage of this enum class is:
   It's a bridge between polaris and iceberg sdk. Polaris can understand this 
enum class, but we need to convert it to the property that iceberg sdk can 
understands. 
   Considering this, I prefer to keep it as it's.
   
   i.e., Inside polaris, we will always use this enum class to refer to the 
property, when we need to use iceberg sdk, like `RESTCatalog` and `FileIO`.



-- 
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]

Reply via email to