From 448344f5ca76f58e5b5215c69f465ce32d112dd0 Mon Sep 17 00:00:00 2001 From: Andrei Arlou Date: Sat, 23 Nov 2019 10:20:05 +0300 Subject: [PATCH] KEYCLOAK-12212 Remove unused imports from module "server-spi" --- .../main/java/org/keycloak/component/SubComponentFactory.java | 4 ---- .../org/keycloak/credential/CredentialAuthentication.java | 3 --- .../java/org/keycloak/credential/CredentialInputUpdater.java | 1 - .../org/keycloak/credential/CredentialInputValidator.java | 2 -- .../org/keycloak/credential/hash/PasswordHashProvider.java | 1 - .../main/java/org/keycloak/models/ActionTokenValueModel.java | 1 - .../org/keycloak/sessions/AuthenticationSessionModel.java | 1 - .../java/org/keycloak/storage/UserStorageProviderFactory.java | 2 -- .../org/keycloak/storage/client/ClientStorageProvider.java | 1 - .../storage/federated/UserAttributeFederatedStorage.java | 1 - .../storage/federated/UserBrokerLinkFederatedStorage.java | 1 - .../storage/federated/UserConsentFederatedStorage.java | 1 - .../storage/federated/UserFederatedUserCredentialStore.java | 1 - .../federated/UserGroupMembershipFederatedStorage.java | 1 - .../storage/federated/UserNotBeforeFederatedStorage.java | 1 - .../federated/UserRequiredActionsFederatedStorage.java | 1 - .../storage/federated/UserRoleMappingsFederatedStorage.java | 1 - .../src/main/java/org/keycloak/vault/VaultTranscriber.java | 2 -- 18 files changed, 26 deletions(-) diff --git a/server-spi/src/main/java/org/keycloak/component/SubComponentFactory.java b/server-spi/src/main/java/org/keycloak/component/SubComponentFactory.java index 56c012d4be..989886fe3f 100644 --- a/server-spi/src/main/java/org/keycloak/component/SubComponentFactory.java +++ b/server-spi/src/main/java/org/keycloak/component/SubComponentFactory.java @@ -16,14 +16,10 @@ */ package org.keycloak.component; -import org.keycloak.models.KeycloakSession; import org.keycloak.models.RealmModel; -import org.keycloak.provider.ConfiguredProvider; import org.keycloak.provider.Provider; import org.keycloak.provider.ProviderConfigProperty; -import org.keycloak.provider.ProviderFactory; -import java.util.Collections; import java.util.List; import java.util.Map; diff --git a/server-spi/src/main/java/org/keycloak/credential/CredentialAuthentication.java b/server-spi/src/main/java/org/keycloak/credential/CredentialAuthentication.java index 0acbb71818..d294ebfd00 100644 --- a/server-spi/src/main/java/org/keycloak/credential/CredentialAuthentication.java +++ b/server-spi/src/main/java/org/keycloak/credential/CredentialAuthentication.java @@ -17,11 +17,8 @@ package org.keycloak.credential; import org.keycloak.models.CredentialValidationOutput; -import org.keycloak.models.KeycloakSession; import org.keycloak.models.RealmModel; -import java.util.Set; - /** * Single purpose method that knows how to authenticate a user based on a credential type. This is used when the user * is not known but the provider knows how to extract this information from the credential. Examples are Kerberos. diff --git a/server-spi/src/main/java/org/keycloak/credential/CredentialInputUpdater.java b/server-spi/src/main/java/org/keycloak/credential/CredentialInputUpdater.java index 9a0d2b7693..8b1093888e 100644 --- a/server-spi/src/main/java/org/keycloak/credential/CredentialInputUpdater.java +++ b/server-spi/src/main/java/org/keycloak/credential/CredentialInputUpdater.java @@ -19,7 +19,6 @@ package org.keycloak.credential; import org.keycloak.models.RealmModel; import org.keycloak.models.UserModel; -import java.util.List; import java.util.Set; /** diff --git a/server-spi/src/main/java/org/keycloak/credential/CredentialInputValidator.java b/server-spi/src/main/java/org/keycloak/credential/CredentialInputValidator.java index c59ed79344..8ba2abfb69 100644 --- a/server-spi/src/main/java/org/keycloak/credential/CredentialInputValidator.java +++ b/server-spi/src/main/java/org/keycloak/credential/CredentialInputValidator.java @@ -19,8 +19,6 @@ package org.keycloak.credential; import org.keycloak.models.RealmModel; import org.keycloak.models.UserModel; -import java.util.List; - /** * Implentations of this interface can validate CredentialInput, i.e. verify a password. * UserStorageProviders and CredentialProviders can implement this interface. diff --git a/server-spi/src/main/java/org/keycloak/credential/hash/PasswordHashProvider.java b/server-spi/src/main/java/org/keycloak/credential/hash/PasswordHashProvider.java index 22cbf1a168..69db2c63eb 100644 --- a/server-spi/src/main/java/org/keycloak/credential/hash/PasswordHashProvider.java +++ b/server-spi/src/main/java/org/keycloak/credential/hash/PasswordHashProvider.java @@ -17,7 +17,6 @@ package org.keycloak.credential.hash; -import org.keycloak.credential.CredentialModel; import org.keycloak.models.PasswordPolicy; import org.keycloak.models.credential.PasswordCredentialModel; import org.keycloak.provider.Provider; diff --git a/server-spi/src/main/java/org/keycloak/models/ActionTokenValueModel.java b/server-spi/src/main/java/org/keycloak/models/ActionTokenValueModel.java index ba01cb6cbb..a7d7f0441f 100644 --- a/server-spi/src/main/java/org/keycloak/models/ActionTokenValueModel.java +++ b/server-spi/src/main/java/org/keycloak/models/ActionTokenValueModel.java @@ -17,7 +17,6 @@ package org.keycloak.models; import java.util.Map; -import java.util.UUID; /** * This model represents contents of an action token shareable among Keycloak instances in the cluster. diff --git a/server-spi/src/main/java/org/keycloak/sessions/AuthenticationSessionModel.java b/server-spi/src/main/java/org/keycloak/sessions/AuthenticationSessionModel.java index 7d10fe080b..b3c976b188 100644 --- a/server-spi/src/main/java/org/keycloak/sessions/AuthenticationSessionModel.java +++ b/server-spi/src/main/java/org/keycloak/sessions/AuthenticationSessionModel.java @@ -20,7 +20,6 @@ package org.keycloak.sessions; import java.util.Map; import java.util.Set; -import org.keycloak.models.ClientModel; import org.keycloak.models.UserModel; /** diff --git a/server-spi/src/main/java/org/keycloak/storage/UserStorageProviderFactory.java b/server-spi/src/main/java/org/keycloak/storage/UserStorageProviderFactory.java index 18e291ac6d..4d31aeebac 100755 --- a/server-spi/src/main/java/org/keycloak/storage/UserStorageProviderFactory.java +++ b/server-spi/src/main/java/org/keycloak/storage/UserStorageProviderFactory.java @@ -25,12 +25,10 @@ import org.keycloak.models.KeycloakSession; import org.keycloak.models.KeycloakSessionFactory; import org.keycloak.models.RealmModel; import org.keycloak.provider.ProviderConfigProperty; -import org.keycloak.provider.ProviderConfigurationBuilder; import org.keycloak.storage.user.ImportSynchronization; import java.util.Collections; import java.util.HashMap; -import java.util.LinkedList; import java.util.List; import java.util.Map; diff --git a/server-spi/src/main/java/org/keycloak/storage/client/ClientStorageProvider.java b/server-spi/src/main/java/org/keycloak/storage/client/ClientStorageProvider.java index c0773a6188..b7f45c65e7 100644 --- a/server-spi/src/main/java/org/keycloak/storage/client/ClientStorageProvider.java +++ b/server-spi/src/main/java/org/keycloak/storage/client/ClientStorageProvider.java @@ -20,7 +20,6 @@ import org.keycloak.models.GroupModel; import org.keycloak.models.RealmModel; import org.keycloak.models.RoleModel; import org.keycloak.provider.Provider; -import org.keycloak.storage.client.ClientLookupProvider; /** * Base interface for components that want to provide an alternative storage mechanism for clients diff --git a/server-spi/src/main/java/org/keycloak/storage/federated/UserAttributeFederatedStorage.java b/server-spi/src/main/java/org/keycloak/storage/federated/UserAttributeFederatedStorage.java index 28ab59459a..14d3bbfb68 100644 --- a/server-spi/src/main/java/org/keycloak/storage/federated/UserAttributeFederatedStorage.java +++ b/server-spi/src/main/java/org/keycloak/storage/federated/UserAttributeFederatedStorage.java @@ -18,7 +18,6 @@ package org.keycloak.storage.federated; import org.keycloak.common.util.MultivaluedHashMap; import org.keycloak.models.RealmModel; -import org.keycloak.models.UserModel; import java.util.List; diff --git a/server-spi/src/main/java/org/keycloak/storage/federated/UserBrokerLinkFederatedStorage.java b/server-spi/src/main/java/org/keycloak/storage/federated/UserBrokerLinkFederatedStorage.java index bdb9029667..36726dd112 100644 --- a/server-spi/src/main/java/org/keycloak/storage/federated/UserBrokerLinkFederatedStorage.java +++ b/server-spi/src/main/java/org/keycloak/storage/federated/UserBrokerLinkFederatedStorage.java @@ -18,7 +18,6 @@ package org.keycloak.storage.federated; import org.keycloak.models.FederatedIdentityModel; import org.keycloak.models.RealmModel; -import org.keycloak.models.UserModel; import java.util.Set; diff --git a/server-spi/src/main/java/org/keycloak/storage/federated/UserConsentFederatedStorage.java b/server-spi/src/main/java/org/keycloak/storage/federated/UserConsentFederatedStorage.java index 21e79cae04..8e4bb8e4c6 100644 --- a/server-spi/src/main/java/org/keycloak/storage/federated/UserConsentFederatedStorage.java +++ b/server-spi/src/main/java/org/keycloak/storage/federated/UserConsentFederatedStorage.java @@ -18,7 +18,6 @@ package org.keycloak.storage.federated; import org.keycloak.models.RealmModel; import org.keycloak.models.UserConsentModel; -import org.keycloak.models.UserModel; import java.util.List; diff --git a/server-spi/src/main/java/org/keycloak/storage/federated/UserFederatedUserCredentialStore.java b/server-spi/src/main/java/org/keycloak/storage/federated/UserFederatedUserCredentialStore.java index 0df895bbc0..12f43e5f9f 100644 --- a/server-spi/src/main/java/org/keycloak/storage/federated/UserFederatedUserCredentialStore.java +++ b/server-spi/src/main/java/org/keycloak/storage/federated/UserFederatedUserCredentialStore.java @@ -18,7 +18,6 @@ package org.keycloak.storage.federated; import org.keycloak.credential.CredentialModel; import org.keycloak.models.RealmModel; -import org.keycloak.models.UserModel; import org.keycloak.provider.Provider; import java.util.List; diff --git a/server-spi/src/main/java/org/keycloak/storage/federated/UserGroupMembershipFederatedStorage.java b/server-spi/src/main/java/org/keycloak/storage/federated/UserGroupMembershipFederatedStorage.java index 696ff84667..9ce926344c 100644 --- a/server-spi/src/main/java/org/keycloak/storage/federated/UserGroupMembershipFederatedStorage.java +++ b/server-spi/src/main/java/org/keycloak/storage/federated/UserGroupMembershipFederatedStorage.java @@ -18,7 +18,6 @@ package org.keycloak.storage.federated; import org.keycloak.models.GroupModel; import org.keycloak.models.RealmModel; -import org.keycloak.models.UserModel; import java.util.List; import java.util.Set; diff --git a/server-spi/src/main/java/org/keycloak/storage/federated/UserNotBeforeFederatedStorage.java b/server-spi/src/main/java/org/keycloak/storage/federated/UserNotBeforeFederatedStorage.java index 4b18026645..a5d35bf8ca 100644 --- a/server-spi/src/main/java/org/keycloak/storage/federated/UserNotBeforeFederatedStorage.java +++ b/server-spi/src/main/java/org/keycloak/storage/federated/UserNotBeforeFederatedStorage.java @@ -18,7 +18,6 @@ package org.keycloak.storage.federated; import org.keycloak.models.RealmModel; -import org.keycloak.models.UserModel; /** * @author Marek Posolda diff --git a/server-spi/src/main/java/org/keycloak/storage/federated/UserRequiredActionsFederatedStorage.java b/server-spi/src/main/java/org/keycloak/storage/federated/UserRequiredActionsFederatedStorage.java index e58c0a0d0d..05f5b2e23c 100644 --- a/server-spi/src/main/java/org/keycloak/storage/federated/UserRequiredActionsFederatedStorage.java +++ b/server-spi/src/main/java/org/keycloak/storage/federated/UserRequiredActionsFederatedStorage.java @@ -17,7 +17,6 @@ package org.keycloak.storage.federated; import org.keycloak.models.RealmModel; -import org.keycloak.models.UserModel; import java.util.Set; diff --git a/server-spi/src/main/java/org/keycloak/storage/federated/UserRoleMappingsFederatedStorage.java b/server-spi/src/main/java/org/keycloak/storage/federated/UserRoleMappingsFederatedStorage.java index 446898bdba..c2edba1f3d 100644 --- a/server-spi/src/main/java/org/keycloak/storage/federated/UserRoleMappingsFederatedStorage.java +++ b/server-spi/src/main/java/org/keycloak/storage/federated/UserRoleMappingsFederatedStorage.java @@ -18,7 +18,6 @@ package org.keycloak.storage.federated; import org.keycloak.models.RealmModel; import org.keycloak.models.RoleModel; -import org.keycloak.models.UserModel; import java.util.Set; diff --git a/server-spi/src/main/java/org/keycloak/vault/VaultTranscriber.java b/server-spi/src/main/java/org/keycloak/vault/VaultTranscriber.java index 686938a8bf..7590b95a7e 100644 --- a/server-spi/src/main/java/org/keycloak/vault/VaultTranscriber.java +++ b/server-spi/src/main/java/org/keycloak/vault/VaultTranscriber.java @@ -18,8 +18,6 @@ package org.keycloak.vault; import java.lang.ref.WeakReference; -import java.nio.CharBuffer; -import java.util.Optional; /** * A facade to the configured vault provider that exposes utility methods for obtaining the vault secrets in different