knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smol...@apache.org
Subject [knox] branch master updated: KNOX-2670 - Deleting unnecessary removeToken override from AliasBasedTokenStateService (#501)
Date Thu, 23 Sep 2021 17:56:08 GMT
This is an automated email from the ASF dual-hosted git repository.

smolnar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git


The following commit(s) were added to refs/heads/master by this push:
     new 5dcb19f  KNOX-2670 - Deleting unnecessary removeToken override from AliasBasedTokenStateService
(#501)
5dcb19f is described below

commit 5dcb19f4bc4726b24fb941736ffedb202af594f3
Author: Sandor Molnar <smolnar@apache.org>
AuthorDate: Thu Sep 23 19:56:02 2021 +0200

    KNOX-2670 - Deleting unnecessary removeToken override from AliasBasedTokenStateService
(#501)
---
 .../gateway/services/token/impl/AliasBasedTokenStateService.java    | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/gateway-server/src/main/java/org/apache/knox/gateway/services/token/impl/AliasBasedTokenStateService.java
b/gateway-server/src/main/java/org/apache/knox/gateway/services/token/impl/AliasBasedTokenStateService.java
index d00b2b0..3089519 100644
--- a/gateway-server/src/main/java/org/apache/knox/gateway/services/token/impl/AliasBasedTokenStateService.java
+++ b/gateway-server/src/main/java/org/apache/knox/gateway/services/token/impl/AliasBasedTokenStateService.java
@@ -20,7 +20,6 @@ import java.io.IOException;
 import java.nio.file.Path;
 import java.nio.file.Paths;
 import java.util.ArrayList;
-import java.util.Collections;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.List;
@@ -413,11 +412,6 @@ public class AliasBasedTokenStateService extends DefaultTokenStateService
implem
   }
 
   @Override
-  protected void removeToken(final String tokenId) throws UnknownTokenException {
-    removeTokens(Collections.singleton(tokenId));
-  }
-
-  @Override
   protected void removeTokens(Set<String> tokenIds) {
 
     // If any of the token IDs is represented among the unpersisted state, remove the associated
state

Mime
View raw message