This is an automated email from the ASF dual-hosted git repository.
adutra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 52ab3740a Remove unused class TokenInfoExchangeResponse (#1479)
52ab3740a is described below
commit 52ab3740a48c9b2f95165860b33e3e5915c276a2
Author: Alexandre Dutra <[email protected]>
AuthorDate: Mon Apr 28 16:11:22 2025 +0200
Remove unused class TokenInfoExchangeResponse (#1479)
This is an oversight from #1399.
---
.../service/auth/TokenInfoExchangeResponse.java | 153 ---------------------
1 file changed, 153 deletions(-)
diff --git
a/service/common/src/main/java/org/apache/polaris/service/auth/TokenInfoExchangeResponse.java
b/service/common/src/main/java/org/apache/polaris/service/auth/TokenInfoExchangeResponse.java
deleted file mode 100644
index 8e580c656..000000000
---
a/service/common/src/main/java/org/apache/polaris/service/auth/TokenInfoExchangeResponse.java
+++ /dev/null
@@ -1,153 +0,0 @@
-/*
- * 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.service.auth;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-public class TokenInfoExchangeResponse implements DecodedToken {
-
- private boolean active;
-
- @JsonProperty("active")
- public boolean isActive() {
- return active;
- }
-
- @JsonProperty("active")
- public void setActive(boolean active) {
- this.active = active;
- }
-
- private String scope;
-
- @JsonProperty("scope")
- @Override
- public String getScope() {
- return scope;
- }
-
- @JsonProperty("scope")
- public void setScope(String scope) {
- this.scope = scope;
- }
-
- private String clientId;
-
- @JsonProperty("client_id")
- @Override
- public String getClientId() {
- return clientId;
- }
-
- @JsonProperty("client_id")
- public void setClientId(String clientId) {
- this.clientId = clientId;
- }
-
- private String tokenType;
-
- @JsonProperty("token_type")
- public String getTokenType() {
- return tokenType;
- }
-
- @JsonProperty("token_type")
- public void setTokenType(String tokenType) {
- this.tokenType = tokenType;
- }
-
- private Long exp;
-
- @JsonProperty("exp")
- public Long getExp() {
- return exp;
- }
-
- @JsonProperty("exp")
- public void setExp(Long exp) {
- this.exp = exp;
- }
-
- private String sub;
-
- @JsonProperty("sub")
- @Override
- public String getSub() {
- return sub;
- }
-
- @JsonProperty("sub")
- public void setSub(String sub) {
- this.sub = sub;
- }
-
- private String aud;
-
- @JsonProperty("aud")
- public String getAud() {
- return aud;
- }
-
- @JsonProperty("aud")
- public void setAud(String aud) {
- this.aud = aud;
- }
-
- @JsonProperty("iss")
- private String iss;
-
- @JsonProperty("iss")
- public String getIss() {
- return iss;
- }
-
- @JsonProperty("iss")
- public void setIss(String iss) {
- this.iss = iss;
- }
-
- private String token;
-
- @JsonProperty("token")
- public String getToken() {
- return token;
- }
-
- @JsonProperty("token")
- public void setToken(String token) {
- this.token = token;
- }
-
- private long integrationId;
-
- public long getIntegrationId() {
- return integrationId;
- }
-
- @JsonProperty("integration_id")
- public void setIntegrationId(long integrationId) {
- this.integrationId = integrationId;
- }
-
- /* integration ID is effectively principal ID */
- @Override
- public Long getPrincipalId() {
- return integrationId;
- }
-}