A model type representing the configuration for identity providers. It provides some common properties and also a {@link org.keycloak.models.IdentityProviderModel#config} * for configuration options and properties specifics to a identity provider.
diff --git a/model/api/src/main/java/org/keycloak/models/ImpersonationConstants.java b/server-spi/src/main/java/org/keycloak/models/ImpersonationConstants.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/ImpersonationConstants.java rename to server-spi/src/main/java/org/keycloak/models/ImpersonationConstants.java diff --git a/model/api/src/main/java/org/keycloak/models/KeycloakContext.java b/server-spi/src/main/java/org/keycloak/models/KeycloakContext.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/KeycloakContext.java rename to server-spi/src/main/java/org/keycloak/models/KeycloakContext.java diff --git a/model/api/src/main/java/org/keycloak/models/KeycloakSession.java b/server-spi/src/main/java/org/keycloak/models/KeycloakSession.java similarity index 97% rename from model/api/src/main/java/org/keycloak/models/KeycloakSession.java rename to server-spi/src/main/java/org/keycloak/models/KeycloakSession.java index 27a43be7d8..77cc36f636 100755 --- a/model/api/src/main/java/org/keycloak/models/KeycloakSession.java +++ b/server-spi/src/main/java/org/keycloak/models/KeycloakSession.java @@ -1,6 +1,5 @@ package org.keycloak.models; -import org.keycloak.migration.MigrationModel; import org.keycloak.provider.Provider; import java.util.Set; diff --git a/model/api/src/main/java/org/keycloak/models/KeycloakSessionFactory.java b/server-spi/src/main/java/org/keycloak/models/KeycloakSessionFactory.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/KeycloakSessionFactory.java rename to server-spi/src/main/java/org/keycloak/models/KeycloakSessionFactory.java diff --git a/model/api/src/main/java/org/keycloak/models/KeycloakSessionTask.java b/server-spi/src/main/java/org/keycloak/models/KeycloakSessionTask.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/KeycloakSessionTask.java rename to server-spi/src/main/java/org/keycloak/models/KeycloakSessionTask.java diff --git a/model/api/src/main/java/org/keycloak/models/KeycloakTransaction.java b/server-spi/src/main/java/org/keycloak/models/KeycloakTransaction.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/KeycloakTransaction.java rename to server-spi/src/main/java/org/keycloak/models/KeycloakTransaction.java diff --git a/model/api/src/main/java/org/keycloak/models/KeycloakTransactionManager.java b/server-spi/src/main/java/org/keycloak/models/KeycloakTransactionManager.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/KeycloakTransactionManager.java rename to server-spi/src/main/java/org/keycloak/models/KeycloakTransactionManager.java diff --git a/model/api/src/main/java/org/keycloak/models/LDAPConstants.java b/server-spi/src/main/java/org/keycloak/models/LDAPConstants.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/LDAPConstants.java rename to server-spi/src/main/java/org/keycloak/models/LDAPConstants.java diff --git a/model/api/src/main/java/org/keycloak/models/ModelDuplicateException.java b/server-spi/src/main/java/org/keycloak/models/ModelDuplicateException.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/ModelDuplicateException.java rename to server-spi/src/main/java/org/keycloak/models/ModelDuplicateException.java diff --git a/model/api/src/main/java/org/keycloak/models/ModelException.java b/server-spi/src/main/java/org/keycloak/models/ModelException.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/ModelException.java rename to server-spi/src/main/java/org/keycloak/models/ModelException.java diff --git a/model/api/src/main/java/org/keycloak/models/ModelReadOnlyException.java b/server-spi/src/main/java/org/keycloak/models/ModelReadOnlyException.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/ModelReadOnlyException.java rename to server-spi/src/main/java/org/keycloak/models/ModelReadOnlyException.java diff --git a/model/api/src/main/java/org/keycloak/models/OTPPolicy.java b/server-spi/src/main/java/org/keycloak/models/OTPPolicy.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/OTPPolicy.java rename to server-spi/src/main/java/org/keycloak/models/OTPPolicy.java diff --git a/model/api/src/main/java/org/keycloak/models/PasswordPolicy.java b/server-spi/src/main/java/org/keycloak/models/PasswordPolicy.java similarity index 99% rename from model/api/src/main/java/org/keycloak/models/PasswordPolicy.java rename to server-spi/src/main/java/org/keycloak/models/PasswordPolicy.java index 211b8a25be..a45e9f2ec3 100755 --- a/model/api/src/main/java/org/keycloak/models/PasswordPolicy.java +++ b/server-spi/src/main/java/org/keycloak/models/PasswordPolicy.java @@ -1,7 +1,6 @@ package org.keycloak.models; import org.keycloak.hash.PasswordHashManager; -import org.keycloak.hash.PasswordHashProvider; import java.io.Serializable; import java.util.ArrayList; diff --git a/model/api/src/main/java/org/keycloak/models/ProtocolMapperContainerModel.java b/server-spi/src/main/java/org/keycloak/models/ProtocolMapperContainerModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/ProtocolMapperContainerModel.java rename to server-spi/src/main/java/org/keycloak/models/ProtocolMapperContainerModel.java diff --git a/model/api/src/main/java/org/keycloak/models/ProtocolMapperModel.java b/server-spi/src/main/java/org/keycloak/models/ProtocolMapperModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/ProtocolMapperModel.java rename to server-spi/src/main/java/org/keycloak/models/ProtocolMapperModel.java diff --git a/model/api/src/main/java/org/keycloak/models/RealmModel.java b/server-spi/src/main/java/org/keycloak/models/RealmModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/RealmModel.java rename to server-spi/src/main/java/org/keycloak/models/RealmModel.java diff --git a/model/api/src/main/java/org/keycloak/models/RealmProvider.java b/server-spi/src/main/java/org/keycloak/models/RealmProvider.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/RealmProvider.java rename to server-spi/src/main/java/org/keycloak/models/RealmProvider.java diff --git a/model/api/src/main/java/org/keycloak/models/RealmProviderFactory.java b/server-spi/src/main/java/org/keycloak/models/RealmProviderFactory.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/RealmProviderFactory.java rename to server-spi/src/main/java/org/keycloak/models/RealmProviderFactory.java diff --git a/model/api/src/main/java/org/keycloak/models/RealmSpi.java b/server-spi/src/main/java/org/keycloak/models/RealmSpi.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/RealmSpi.java rename to server-spi/src/main/java/org/keycloak/models/RealmSpi.java diff --git a/model/api/src/main/java/org/keycloak/models/RequiredActionProviderModel.java b/server-spi/src/main/java/org/keycloak/models/RequiredActionProviderModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/RequiredActionProviderModel.java rename to server-spi/src/main/java/org/keycloak/models/RequiredActionProviderModel.java diff --git a/model/api/src/main/java/org/keycloak/models/RequiredCredentialModel.java b/server-spi/src/main/java/org/keycloak/models/RequiredCredentialModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/RequiredCredentialModel.java rename to server-spi/src/main/java/org/keycloak/models/RequiredCredentialModel.java diff --git a/model/api/src/main/java/org/keycloak/models/RoleContainerModel.java b/server-spi/src/main/java/org/keycloak/models/RoleContainerModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/RoleContainerModel.java rename to server-spi/src/main/java/org/keycloak/models/RoleContainerModel.java diff --git a/model/api/src/main/java/org/keycloak/models/RoleMapperModel.java b/server-spi/src/main/java/org/keycloak/models/RoleMapperModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/RoleMapperModel.java rename to server-spi/src/main/java/org/keycloak/models/RoleMapperModel.java diff --git a/model/api/src/main/java/org/keycloak/models/RoleModel.java b/server-spi/src/main/java/org/keycloak/models/RoleModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/RoleModel.java rename to server-spi/src/main/java/org/keycloak/models/RoleModel.java diff --git a/model/api/src/main/java/org/keycloak/models/ScopeContainerModel.java b/server-spi/src/main/java/org/keycloak/models/ScopeContainerModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/ScopeContainerModel.java rename to server-spi/src/main/java/org/keycloak/models/ScopeContainerModel.java diff --git a/model/api/src/main/java/org/keycloak/models/UserConsentModel.java b/server-spi/src/main/java/org/keycloak/models/UserConsentModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserConsentModel.java rename to server-spi/src/main/java/org/keycloak/models/UserConsentModel.java diff --git a/model/api/src/main/java/org/keycloak/models/UserCredentialModel.java b/server-spi/src/main/java/org/keycloak/models/UserCredentialModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserCredentialModel.java rename to server-spi/src/main/java/org/keycloak/models/UserCredentialModel.java diff --git a/model/api/src/main/java/org/keycloak/models/UserCredentialValueModel.java b/server-spi/src/main/java/org/keycloak/models/UserCredentialValueModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserCredentialValueModel.java rename to server-spi/src/main/java/org/keycloak/models/UserCredentialValueModel.java diff --git a/model/api/src/main/java/org/keycloak/models/UserFederationEventAwareProviderFactory.java b/server-spi/src/main/java/org/keycloak/models/UserFederationEventAwareProviderFactory.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserFederationEventAwareProviderFactory.java rename to server-spi/src/main/java/org/keycloak/models/UserFederationEventAwareProviderFactory.java diff --git a/model/api/src/main/java/org/keycloak/models/UserFederationManager.java b/server-spi/src/main/java/org/keycloak/models/UserFederationManager.java similarity index 99% rename from model/api/src/main/java/org/keycloak/models/UserFederationManager.java rename to server-spi/src/main/java/org/keycloak/models/UserFederationManager.java index f69d1d5b51..3169ea4605 100755 --- a/model/api/src/main/java/org/keycloak/models/UserFederationManager.java +++ b/server-spi/src/main/java/org/keycloak/models/UserFederationManager.java @@ -4,7 +4,6 @@ import org.jboss.logging.Logger; import java.util.ArrayList; import java.util.Arrays; -import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.LinkedHashSet; diff --git a/model/api/src/main/java/org/keycloak/models/UserFederationMapperModel.java b/server-spi/src/main/java/org/keycloak/models/UserFederationMapperModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserFederationMapperModel.java rename to server-spi/src/main/java/org/keycloak/models/UserFederationMapperModel.java diff --git a/model/api/src/main/java/org/keycloak/models/UserFederationProvider.java b/server-spi/src/main/java/org/keycloak/models/UserFederationProvider.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserFederationProvider.java rename to server-spi/src/main/java/org/keycloak/models/UserFederationProvider.java diff --git a/model/api/src/main/java/org/keycloak/models/UserFederationProviderCreationEventImpl.java b/server-spi/src/main/java/org/keycloak/models/UserFederationProviderCreationEventImpl.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserFederationProviderCreationEventImpl.java rename to server-spi/src/main/java/org/keycloak/models/UserFederationProviderCreationEventImpl.java diff --git a/model/api/src/main/java/org/keycloak/models/UserFederationProviderFactory.java b/server-spi/src/main/java/org/keycloak/models/UserFederationProviderFactory.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserFederationProviderFactory.java rename to server-spi/src/main/java/org/keycloak/models/UserFederationProviderFactory.java diff --git a/model/api/src/main/java/org/keycloak/models/UserFederationProviderModel.java b/server-spi/src/main/java/org/keycloak/models/UserFederationProviderModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserFederationProviderModel.java rename to server-spi/src/main/java/org/keycloak/models/UserFederationProviderModel.java diff --git a/model/api/src/main/java/org/keycloak/models/UserFederationSpi.java b/server-spi/src/main/java/org/keycloak/models/UserFederationSpi.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserFederationSpi.java rename to server-spi/src/main/java/org/keycloak/models/UserFederationSpi.java diff --git a/model/api/src/main/java/org/keycloak/models/UserFederationSyncResult.java b/server-spi/src/main/java/org/keycloak/models/UserFederationSyncResult.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserFederationSyncResult.java rename to server-spi/src/main/java/org/keycloak/models/UserFederationSyncResult.java diff --git a/model/api/src/main/java/org/keycloak/models/UserModel.java b/server-spi/src/main/java/org/keycloak/models/UserModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserModel.java rename to server-spi/src/main/java/org/keycloak/models/UserModel.java diff --git a/model/api/src/main/java/org/keycloak/models/UserProvider.java b/server-spi/src/main/java/org/keycloak/models/UserProvider.java similarity index 99% rename from model/api/src/main/java/org/keycloak/models/UserProvider.java rename to server-spi/src/main/java/org/keycloak/models/UserProvider.java index 044a9385f0..042c3728ce 100755 --- a/model/api/src/main/java/org/keycloak/models/UserProvider.java +++ b/server-spi/src/main/java/org/keycloak/models/UserProvider.java @@ -2,7 +2,6 @@ package org.keycloak.models; import org.keycloak.provider.Provider; -import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; diff --git a/model/api/src/main/java/org/keycloak/models/UserProviderFactory.java b/server-spi/src/main/java/org/keycloak/models/UserProviderFactory.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserProviderFactory.java rename to server-spi/src/main/java/org/keycloak/models/UserProviderFactory.java diff --git a/model/api/src/main/java/org/keycloak/models/UserSessionModel.java b/server-spi/src/main/java/org/keycloak/models/UserSessionModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserSessionModel.java rename to server-spi/src/main/java/org/keycloak/models/UserSessionModel.java diff --git a/model/api/src/main/java/org/keycloak/models/UserSessionProvider.java b/server-spi/src/main/java/org/keycloak/models/UserSessionProvider.java similarity index 99% rename from model/api/src/main/java/org/keycloak/models/UserSessionProvider.java rename to server-spi/src/main/java/org/keycloak/models/UserSessionProvider.java index f2acf49115..8145bb2071 100755 --- a/model/api/src/main/java/org/keycloak/models/UserSessionProvider.java +++ b/server-spi/src/main/java/org/keycloak/models/UserSessionProvider.java @@ -2,7 +2,6 @@ package org.keycloak.models; import org.keycloak.provider.Provider; -import java.util.Collection; import java.util.List; /** diff --git a/model/api/src/main/java/org/keycloak/models/UserSessionProviderFactory.java b/server-spi/src/main/java/org/keycloak/models/UserSessionProviderFactory.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserSessionProviderFactory.java rename to server-spi/src/main/java/org/keycloak/models/UserSessionProviderFactory.java diff --git a/model/api/src/main/java/org/keycloak/models/UserSessionSpi.java b/server-spi/src/main/java/org/keycloak/models/UserSessionSpi.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserSessionSpi.java rename to server-spi/src/main/java/org/keycloak/models/UserSessionSpi.java diff --git a/model/api/src/main/java/org/keycloak/models/UserSpi.java b/server-spi/src/main/java/org/keycloak/models/UserSpi.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UserSpi.java rename to server-spi/src/main/java/org/keycloak/models/UserSpi.java diff --git a/model/api/src/main/java/org/keycloak/models/UsernameLoginFailureModel.java b/server-spi/src/main/java/org/keycloak/models/UsernameLoginFailureModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/UsernameLoginFailureModel.java rename to server-spi/src/main/java/org/keycloak/models/UsernameLoginFailureModel.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/AbstractIdentifiableEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/AbstractIdentifiableEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/AbstractIdentifiableEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/AbstractIdentifiableEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/AuthenticationExecutionEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/AuthenticationExecutionEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/AuthenticationExecutionEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/AuthenticationExecutionEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/AuthenticationFlowEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/AuthenticationFlowEntity.java similarity index 98% rename from model/api/src/main/java/org/keycloak/models/entities/AuthenticationFlowEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/AuthenticationFlowEntity.java index a28df5d3f0..502dbce786 100755 --- a/model/api/src/main/java/org/keycloak/models/entities/AuthenticationFlowEntity.java +++ b/server-spi/src/main/java/org/keycloak/models/entities/AuthenticationFlowEntity.java @@ -1,7 +1,6 @@ package org.keycloak.models.entities; import java.util.ArrayList; -import java.util.Collection; import java.util.List; /** diff --git a/model/api/src/main/java/org/keycloak/models/entities/AuthenticatorConfigEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/AuthenticatorConfigEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/AuthenticatorConfigEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/AuthenticatorConfigEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/ClientEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/ClientEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/ClientEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/ClientEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/ClientIdentityProviderMappingEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/ClientIdentityProviderMappingEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/ClientIdentityProviderMappingEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/ClientIdentityProviderMappingEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/ClientTemplateEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/ClientTemplateEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/ClientTemplateEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/ClientTemplateEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/CredentialEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/CredentialEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/CredentialEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/CredentialEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/FederatedIdentityEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/FederatedIdentityEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/FederatedIdentityEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/FederatedIdentityEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/GroupEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/GroupEntity.java similarity index 95% rename from model/api/src/main/java/org/keycloak/models/entities/GroupEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/GroupEntity.java index 5e64643e57..b6cad72992 100755 --- a/model/api/src/main/java/org/keycloak/models/entities/GroupEntity.java +++ b/server-spi/src/main/java/org/keycloak/models/entities/GroupEntity.java @@ -1,9 +1,7 @@ package org.keycloak.models.entities; -import java.util.ArrayList; import java.util.List; import java.util.Map; -import java.util.Set; /** * @author Bill Burke/a> diff --git a/model/api/src/main/java/org/keycloak/models/entities/IdentityProviderEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/IdentityProviderEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/IdentityProviderEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/IdentityProviderEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/IdentityProviderMapperEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/IdentityProviderMapperEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/IdentityProviderMapperEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/IdentityProviderMapperEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/PersistentClientSessionEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/PersistentClientSessionEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/PersistentClientSessionEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/PersistentClientSessionEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/PersistentUserSessionEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/PersistentUserSessionEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/PersistentUserSessionEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/PersistentUserSessionEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/ProtocolMapperEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/ProtocolMapperEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/ProtocolMapperEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/ProtocolMapperEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/RealmEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/RealmEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/RealmEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/RealmEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/RequiredActionProviderEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/RequiredActionProviderEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/RequiredActionProviderEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/RequiredActionProviderEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/RequiredCredentialEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/RequiredCredentialEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/RequiredCredentialEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/RequiredCredentialEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/RoleEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/RoleEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/RoleEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/RoleEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/UserConsentEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/UserConsentEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/UserConsentEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/UserConsentEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/UserEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/UserEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/UserEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/UserEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/UserFederationMapperEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/UserFederationMapperEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/UserFederationMapperEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/UserFederationMapperEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/UserFederationProviderEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/UserFederationProviderEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/UserFederationProviderEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/UserFederationProviderEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/entities/UsernameLoginFailureEntity.java b/server-spi/src/main/java/org/keycloak/models/entities/UsernameLoginFailureEntity.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/entities/UsernameLoginFailureEntity.java rename to server-spi/src/main/java/org/keycloak/models/entities/UsernameLoginFailureEntity.java diff --git a/model/api/src/main/java/org/keycloak/models/session/DisabledUserSessionPersisterProvider.java b/server-spi/src/main/java/org/keycloak/models/session/DisabledUserSessionPersisterProvider.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/session/DisabledUserSessionPersisterProvider.java rename to server-spi/src/main/java/org/keycloak/models/session/DisabledUserSessionPersisterProvider.java diff --git a/model/api/src/main/java/org/keycloak/models/session/PersistentClientSessionAdapter.java b/server-spi/src/main/java/org/keycloak/models/session/PersistentClientSessionAdapter.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/session/PersistentClientSessionAdapter.java rename to server-spi/src/main/java/org/keycloak/models/session/PersistentClientSessionAdapter.java diff --git a/model/api/src/main/java/org/keycloak/models/session/PersistentClientSessionModel.java b/server-spi/src/main/java/org/keycloak/models/session/PersistentClientSessionModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/session/PersistentClientSessionModel.java rename to server-spi/src/main/java/org/keycloak/models/session/PersistentClientSessionModel.java diff --git a/model/api/src/main/java/org/keycloak/models/session/PersistentUserSessionAdapter.java b/server-spi/src/main/java/org/keycloak/models/session/PersistentUserSessionAdapter.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/session/PersistentUserSessionAdapter.java rename to server-spi/src/main/java/org/keycloak/models/session/PersistentUserSessionAdapter.java diff --git a/model/api/src/main/java/org/keycloak/models/session/PersistentUserSessionModel.java b/server-spi/src/main/java/org/keycloak/models/session/PersistentUserSessionModel.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/session/PersistentUserSessionModel.java rename to server-spi/src/main/java/org/keycloak/models/session/PersistentUserSessionModel.java diff --git a/model/api/src/main/java/org/keycloak/models/session/UserSessionPersisterProvider.java b/server-spi/src/main/java/org/keycloak/models/session/UserSessionPersisterProvider.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/session/UserSessionPersisterProvider.java rename to server-spi/src/main/java/org/keycloak/models/session/UserSessionPersisterProvider.java diff --git a/model/api/src/main/java/org/keycloak/models/session/UserSessionPersisterProviderFactory.java b/server-spi/src/main/java/org/keycloak/models/session/UserSessionPersisterProviderFactory.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/session/UserSessionPersisterProviderFactory.java rename to server-spi/src/main/java/org/keycloak/models/session/UserSessionPersisterProviderFactory.java diff --git a/model/api/src/main/java/org/keycloak/models/session/UserSessionPersisterSpi.java b/server-spi/src/main/java/org/keycloak/models/session/UserSessionPersisterSpi.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/session/UserSessionPersisterSpi.java rename to server-spi/src/main/java/org/keycloak/models/session/UserSessionPersisterSpi.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/Base32.java b/server-spi/src/main/java/org/keycloak/models/utils/Base32.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/Base32.java rename to server-spi/src/main/java/org/keycloak/models/utils/Base32.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/CredentialValidation.java b/server-spi/src/main/java/org/keycloak/models/utils/CredentialValidation.java similarity index 98% rename from model/api/src/main/java/org/keycloak/models/utils/CredentialValidation.java rename to server-spi/src/main/java/org/keycloak/models/utils/CredentialValidation.java index 6afc9ed2de..e974c63f4e 100755 --- a/model/api/src/main/java/org/keycloak/models/utils/CredentialValidation.java +++ b/server-spi/src/main/java/org/keycloak/models/utils/CredentialValidation.java @@ -4,7 +4,6 @@ import org.keycloak.hash.PasswordHashManager; import org.keycloak.jose.jws.JWSInput; import org.keycloak.jose.jws.JWSInputException; import org.keycloak.jose.jws.crypto.RSAProvider; -import org.keycloak.models.Constants; import org.keycloak.models.KeycloakSession; import org.keycloak.models.OTPPolicy; import org.keycloak.models.PasswordPolicy; @@ -14,7 +13,6 @@ import org.keycloak.models.UserCredentialValueModel; import org.keycloak.models.UserModel; import org.keycloak.representations.PasswordToken; import org.keycloak.common.util.Time; -import org.keycloak.hash.PasswordHashProvider; import java.util.List; diff --git a/model/api/src/main/java/org/keycloak/models/utils/DefaultAuthenticationFlows.java b/server-spi/src/main/java/org/keycloak/models/utils/DefaultAuthenticationFlows.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/DefaultAuthenticationFlows.java rename to server-spi/src/main/java/org/keycloak/models/utils/DefaultAuthenticationFlows.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/DefaultRequiredActions.java b/server-spi/src/main/java/org/keycloak/models/utils/DefaultRequiredActions.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/DefaultRequiredActions.java rename to server-spi/src/main/java/org/keycloak/models/utils/DefaultRequiredActions.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/FormMessage.java b/server-spi/src/main/java/org/keycloak/models/utils/FormMessage.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/FormMessage.java rename to server-spi/src/main/java/org/keycloak/models/utils/FormMessage.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/HmacOTP.java b/server-spi/src/main/java/org/keycloak/models/utils/HmacOTP.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/HmacOTP.java rename to server-spi/src/main/java/org/keycloak/models/utils/HmacOTP.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/KeycloakModelUtils.java b/server-spi/src/main/java/org/keycloak/models/utils/KeycloakModelUtils.java similarity index 99% rename from model/api/src/main/java/org/keycloak/models/utils/KeycloakModelUtils.java rename to server-spi/src/main/java/org/keycloak/models/utils/KeycloakModelUtils.java index 6a77ac628c..3c71f724d4 100755 --- a/model/api/src/main/java/org/keycloak/models/utils/KeycloakModelUtils.java +++ b/server-spi/src/main/java/org/keycloak/models/utils/KeycloakModelUtils.java @@ -1,14 +1,12 @@ package org.keycloak.models.utils; import org.bouncycastle.openssl.PEMWriter; -import org.keycloak.common.util.Base64; import org.keycloak.common.util.Base64Url; import org.keycloak.models.AuthenticationExecutionModel; import org.keycloak.models.AuthenticationFlowModel; import org.keycloak.models.ClientModel; import org.keycloak.models.Constants; import org.keycloak.models.GroupModel; -import org.keycloak.models.IdentityProviderModel; import org.keycloak.models.KeycloakSession; import org.keycloak.models.KeycloakSessionFactory; import org.keycloak.models.KeycloakSessionTask; @@ -22,7 +20,6 @@ import org.keycloak.models.UserCredentialModel; import org.keycloak.models.UserFederationMapperModel; import org.keycloak.models.UserFederationProviderModel; import org.keycloak.models.UserModel; -import org.keycloak.representations.idm.AuthenticationExecutionRepresentation; import org.keycloak.representations.idm.CertificateRepresentation; import org.keycloak.common.util.CertificateUtils; import org.keycloak.common.util.PemUtils; @@ -41,7 +38,6 @@ import java.security.cert.X509Certificate; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; -import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; diff --git a/model/api/src/main/java/org/keycloak/models/utils/ModelToRepresentation.java b/server-spi/src/main/java/org/keycloak/models/utils/ModelToRepresentation.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/ModelToRepresentation.java rename to server-spi/src/main/java/org/keycloak/models/utils/ModelToRepresentation.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/PostMigrationEvent.java b/server-spi/src/main/java/org/keycloak/models/utils/PostMigrationEvent.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/PostMigrationEvent.java rename to server-spi/src/main/java/org/keycloak/models/utils/PostMigrationEvent.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/RealmImporter.java b/server-spi/src/main/java/org/keycloak/models/utils/RealmImporter.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/RealmImporter.java rename to server-spi/src/main/java/org/keycloak/models/utils/RealmImporter.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/RealmInfoUtil.java b/server-spi/src/main/java/org/keycloak/models/utils/RealmInfoUtil.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/RealmInfoUtil.java rename to server-spi/src/main/java/org/keycloak/models/utils/RealmInfoUtil.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/RepresentationToModel.java b/server-spi/src/main/java/org/keycloak/models/utils/RepresentationToModel.java similarity index 99% rename from model/api/src/main/java/org/keycloak/models/utils/RepresentationToModel.java rename to server-spi/src/main/java/org/keycloak/models/utils/RepresentationToModel.java index 612daba51d..e4634bad14 100755 --- a/model/api/src/main/java/org/keycloak/models/utils/RepresentationToModel.java +++ b/server-spi/src/main/java/org/keycloak/models/utils/RepresentationToModel.java @@ -1,6 +1,5 @@ package org.keycloak.models.utils; -import org.keycloak.Config; import org.keycloak.hash.Pbkdf2PasswordHashProvider; import org.keycloak.models.ClientTemplateModel; import org.keycloak.models.Constants; diff --git a/model/api/src/main/java/org/keycloak/models/utils/SHAPasswordEncoder.java b/server-spi/src/main/java/org/keycloak/models/utils/SHAPasswordEncoder.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/SHAPasswordEncoder.java rename to server-spi/src/main/java/org/keycloak/models/utils/SHAPasswordEncoder.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/TimeBasedOTP.java b/server-spi/src/main/java/org/keycloak/models/utils/TimeBasedOTP.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/TimeBasedOTP.java rename to server-spi/src/main/java/org/keycloak/models/utils/TimeBasedOTP.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/UserModelDelegate.java b/server-spi/src/main/java/org/keycloak/models/utils/UserModelDelegate.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/UserModelDelegate.java rename to server-spi/src/main/java/org/keycloak/models/utils/UserModelDelegate.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/reflection/AnnotatedPropertyCriteria.java b/server-spi/src/main/java/org/keycloak/models/utils/reflection/AnnotatedPropertyCriteria.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/reflection/AnnotatedPropertyCriteria.java rename to server-spi/src/main/java/org/keycloak/models/utils/reflection/AnnotatedPropertyCriteria.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/reflection/MethodProperty.java b/server-spi/src/main/java/org/keycloak/models/utils/reflection/MethodProperty.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/reflection/MethodProperty.java rename to server-spi/src/main/java/org/keycloak/models/utils/reflection/MethodProperty.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/reflection/MethodPropertyImpl.java b/server-spi/src/main/java/org/keycloak/models/utils/reflection/MethodPropertyImpl.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/reflection/MethodPropertyImpl.java rename to server-spi/src/main/java/org/keycloak/models/utils/reflection/MethodPropertyImpl.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/reflection/NamedPropertyCriteria.java b/server-spi/src/main/java/org/keycloak/models/utils/reflection/NamedPropertyCriteria.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/reflection/NamedPropertyCriteria.java rename to server-spi/src/main/java/org/keycloak/models/utils/reflection/NamedPropertyCriteria.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/reflection/Properties.java b/server-spi/src/main/java/org/keycloak/models/utils/reflection/Properties.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/reflection/Properties.java rename to server-spi/src/main/java/org/keycloak/models/utils/reflection/Properties.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/reflection/Property.java b/server-spi/src/main/java/org/keycloak/models/utils/reflection/Property.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/reflection/Property.java rename to server-spi/src/main/java/org/keycloak/models/utils/reflection/Property.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/reflection/PropertyCriteria.java b/server-spi/src/main/java/org/keycloak/models/utils/reflection/PropertyCriteria.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/reflection/PropertyCriteria.java rename to server-spi/src/main/java/org/keycloak/models/utils/reflection/PropertyCriteria.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/reflection/PropertyQueries.java b/server-spi/src/main/java/org/keycloak/models/utils/reflection/PropertyQueries.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/reflection/PropertyQueries.java rename to server-spi/src/main/java/org/keycloak/models/utils/reflection/PropertyQueries.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/reflection/PropertyQuery.java b/server-spi/src/main/java/org/keycloak/models/utils/reflection/PropertyQuery.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/reflection/PropertyQuery.java rename to server-spi/src/main/java/org/keycloak/models/utils/reflection/PropertyQuery.java diff --git a/model/api/src/main/java/org/keycloak/models/utils/reflection/TypedPropertyCriteria.java b/server-spi/src/main/java/org/keycloak/models/utils/reflection/TypedPropertyCriteria.java similarity index 100% rename from model/api/src/main/java/org/keycloak/models/utils/reflection/TypedPropertyCriteria.java rename to server-spi/src/main/java/org/keycloak/models/utils/reflection/TypedPropertyCriteria.java diff --git a/model/api/src/main/java/org/keycloak/provider/ConfiguredProvider.java b/server-spi/src/main/java/org/keycloak/provider/ConfiguredProvider.java similarity index 100% rename from model/api/src/main/java/org/keycloak/provider/ConfiguredProvider.java rename to server-spi/src/main/java/org/keycloak/provider/ConfiguredProvider.java diff --git a/model/api/src/main/java/org/keycloak/provider/Provider.java b/server-spi/src/main/java/org/keycloak/provider/Provider.java similarity index 100% rename from model/api/src/main/java/org/keycloak/provider/Provider.java rename to server-spi/src/main/java/org/keycloak/provider/Provider.java diff --git a/model/api/src/main/java/org/keycloak/provider/ProviderConfigProperty.java b/server-spi/src/main/java/org/keycloak/provider/ProviderConfigProperty.java similarity index 100% rename from model/api/src/main/java/org/keycloak/provider/ProviderConfigProperty.java rename to server-spi/src/main/java/org/keycloak/provider/ProviderConfigProperty.java diff --git a/model/api/src/main/java/org/keycloak/provider/ProviderEvent.java b/server-spi/src/main/java/org/keycloak/provider/ProviderEvent.java similarity index 100% rename from model/api/src/main/java/org/keycloak/provider/ProviderEvent.java rename to server-spi/src/main/java/org/keycloak/provider/ProviderEvent.java diff --git a/model/api/src/main/java/org/keycloak/provider/ProviderEventListener.java b/server-spi/src/main/java/org/keycloak/provider/ProviderEventListener.java similarity index 100% rename from model/api/src/main/java/org/keycloak/provider/ProviderEventListener.java rename to server-spi/src/main/java/org/keycloak/provider/ProviderEventListener.java diff --git a/model/api/src/main/java/org/keycloak/provider/ProviderEventManager.java b/server-spi/src/main/java/org/keycloak/provider/ProviderEventManager.java similarity index 100% rename from model/api/src/main/java/org/keycloak/provider/ProviderEventManager.java rename to server-spi/src/main/java/org/keycloak/provider/ProviderEventManager.java diff --git a/model/api/src/main/java/org/keycloak/provider/ProviderFactory.java b/server-spi/src/main/java/org/keycloak/provider/ProviderFactory.java similarity index 100% rename from model/api/src/main/java/org/keycloak/provider/ProviderFactory.java rename to server-spi/src/main/java/org/keycloak/provider/ProviderFactory.java diff --git a/model/api/src/main/java/org/keycloak/provider/ProviderLoader.java b/server-spi/src/main/java/org/keycloak/provider/ProviderLoader.java similarity index 100% rename from model/api/src/main/java/org/keycloak/provider/ProviderLoader.java rename to server-spi/src/main/java/org/keycloak/provider/ProviderLoader.java diff --git a/model/api/src/main/java/org/keycloak/provider/ProviderLoaderFactory.java b/server-spi/src/main/java/org/keycloak/provider/ProviderLoaderFactory.java similarity index 100% rename from model/api/src/main/java/org/keycloak/provider/ProviderLoaderFactory.java rename to server-spi/src/main/java/org/keycloak/provider/ProviderLoaderFactory.java diff --git a/model/api/src/main/java/org/keycloak/provider/ServerInfoAwareProviderFactory.java b/server-spi/src/main/java/org/keycloak/provider/ServerInfoAwareProviderFactory.java similarity index 100% rename from model/api/src/main/java/org/keycloak/provider/ServerInfoAwareProviderFactory.java rename to server-spi/src/main/java/org/keycloak/provider/ServerInfoAwareProviderFactory.java diff --git a/model/api/src/main/java/org/keycloak/provider/Spi.java b/server-spi/src/main/java/org/keycloak/provider/Spi.java similarity index 100% rename from model/api/src/main/java/org/keycloak/provider/Spi.java rename to server-spi/src/main/java/org/keycloak/provider/Spi.java diff --git a/model/api/src/main/resources/META-INF/services/org.keycloak.hash.PasswordHashProviderFactory b/server-spi/src/main/resources/META-INF/services/org.keycloak.hash.PasswordHashProviderFactory similarity index 100% rename from model/api/src/main/resources/META-INF/services/org.keycloak.hash.PasswordHashProviderFactory rename to server-spi/src/main/resources/META-INF/services/org.keycloak.hash.PasswordHashProviderFactory diff --git a/model/api/src/main/resources/META-INF/services/org.keycloak.models.session.UserSessionPersisterProviderFactory b/server-spi/src/main/resources/META-INF/services/org.keycloak.models.session.UserSessionPersisterProviderFactory similarity index 100% rename from model/api/src/main/resources/META-INF/services/org.keycloak.models.session.UserSessionPersisterProviderFactory rename to server-spi/src/main/resources/META-INF/services/org.keycloak.models.session.UserSessionPersisterProviderFactory diff --git a/model/api/src/main/resources/META-INF/services/org.keycloak.provider.Spi b/server-spi/src/main/resources/META-INF/services/org.keycloak.provider.Spi similarity index 100% rename from model/api/src/main/resources/META-INF/services/org.keycloak.provider.Spi rename to server-spi/src/main/resources/META-INF/services/org.keycloak.provider.Spi diff --git a/model/api/src/test/java/org/keycloak/models/HmacTest.java b/server-spi/src/test/java/org/keycloak/models/HmacTest.java similarity index 72% rename from model/api/src/test/java/org/keycloak/models/HmacTest.java rename to server-spi/src/test/java/org/keycloak/models/HmacTest.java index 0cda696e7e..d313f222ad 100755 --- a/model/api/src/test/java/org/keycloak/models/HmacTest.java +++ b/server-spi/src/test/java/org/keycloak/models/HmacTest.java @@ -5,15 +5,6 @@ import org.junit.Test; import org.keycloak.models.utils.Base32; import org.keycloak.models.utils.HmacOTP; -import javax.crypto.Mac; -import javax.crypto.spec.SecretKeySpec; -import java.io.BufferedReader; -import java.io.UnsupportedEncodingException; -import java.net.URLEncoder; -import java.security.InvalidKeyException; -import java.security.NoSuchAlgorithmException; -import java.util.Scanner; - /** * @author Bill Burke * @version $Revision: 1 $ diff --git a/model/api/src/test/java/org/keycloak/models/PasswordPolicyTest.java b/server-spi/src/test/java/org/keycloak/models/PasswordPolicyTest.java similarity index 100% rename from model/api/src/test/java/org/keycloak/models/PasswordPolicyTest.java rename to server-spi/src/test/java/org/keycloak/models/PasswordPolicyTest.java diff --git a/services/pom.xml b/services/pom.xml index bcca1b88bd..408366e9af 100755 --- a/services/pom.xml +++ b/services/pom.xml @@ -60,7 +60,8 @@