From eec9033b6b4a93f71ab35b66a3ffc0f67925724e Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sat, 7 Apr 2012 21:51:32 +0000 Subject: package move to o.a.a.r module redback-keys-api git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1310880 13f79535-47bb-0310-9956-ffa450edef68 --- .../redback/management/DataManagementTool.java | 2 +- .../redback/management/JdoDataManagementTool.java | 7 +- .../redback/management/DataManagementTest.java | 7 +- .../redback/integration/mail/MailGenerator.java | 2 +- .../codehaus/redback/integration/mail/Mailer.java | 2 +- .../redback/integration/mail/MailerImpl.java | 2 +- .../integration/mail/VelocityMailGenerator.java | 2 +- .../redback/integration/util/AutoLoginCookies.java | 8 +- .../integration/mail/MailGeneratorTest.java | 7 +- .../redback/rest/services/DefaultLoginService.java | 4 +- .../rest/services/DefaultPasswordService.java | 4 +- .../redback/rest/services/DefaultUserService.java | 8 +- .../plexus/redback/struts2/action/LoginAction.java | 6 +- .../struts2/action/PasswordResetAction.java | 6 +- .../redback/struts2/action/RegisterAction.java | 4 +- .../struts2/action/admin/BackupRestoreAction.java | 2 +- .../struts2/interceptor/AutoLoginInterceptor.java | 2 +- .../struts2/action/admin/AssignmentsActionTest.xml | 4 +- .../struts2/action/admin/UserEditActionTest.xml | 4 +- .../src/test/resources/spring-context.xml | 4 +- .../keystore/KeyStoreAuthenticator.java | 8 +- .../archiva/redback/keys/AbstractKeyManager.java | 171 +++++++++++++++++++++ .../archiva/redback/keys/AuthenticationKey.java | 60 ++++++++ .../apache/archiva/redback/keys/KeyManager.java | 94 +++++++++++ .../archiva/redback/keys/KeyManagerException.java | 52 +++++++ .../archiva/redback/keys/KeyNotFoundException.java | 50 ++++++ .../plexus/redback/keys/AbstractKeyManager.java | 171 --------------------- .../plexus/redback/keys/AuthenticationKey.java | 53 ------- .../codehaus/plexus/redback/keys/KeyManager.java | 94 ----------- .../plexus/redback/keys/KeyManagerException.java | 52 ------- .../plexus/redback/keys/KeyNotFoundException.java | 48 ------ .../archiva/redback/keys/KeyManagerTest.java | 98 ++++++++++++ .../plexus/redback/keys/KeyManagerTest.java | 94 ----------- .../redback/keys/cached/CachedKeyManager.java | 11 +- .../redback/keys/cached/CachedKeyManagerTest.java | 2 +- .../plexus/redback/keys/jdo/JdoKeyManager.java | 8 +- .../redback-keys-jdo/src/main/mdo/keys.mdo | 4 +- .../plexus/redback/keys/jdo/JdoKeyManagerTest.java | 2 +- .../keys/memory/MemoryAuthenticationKey.java | 2 +- .../redback/keys/memory/MemoryKeyManager.java | 8 +- .../redback/keys/memory/MemoryKeyManagerTest.java | 2 +- .../plexus/redback/keys/KeyManagerTestCase.java | 4 + .../redback/system/DefaultSecuritySystem.java | 2 +- .../plexus/redback/system/SecuritySystem.java | 2 +- 44 files changed, 596 insertions(+), 583 deletions(-) create mode 100644 redback-keys/redback-keys-api/src/main/java/org/apache/archiva/redback/keys/AbstractKeyManager.java create mode 100644 redback-keys/redback-keys-api/src/main/java/org/apache/archiva/redback/keys/AuthenticationKey.java create mode 100644 redback-keys/redback-keys-api/src/main/java/org/apache/archiva/redback/keys/KeyManager.java create mode 100644 redback-keys/redback-keys-api/src/main/java/org/apache/archiva/redback/keys/KeyManagerException.java create mode 100644 redback-keys/redback-keys-api/src/main/java/org/apache/archiva/redback/keys/KeyNotFoundException.java delete mode 100644 redback-keys/redback-keys-api/src/main/java/org/codehaus/plexus/redback/keys/AbstractKeyManager.java delete mode 100644 redback-keys/redback-keys-api/src/main/java/org/codehaus/plexus/redback/keys/AuthenticationKey.java delete mode 100644 redback-keys/redback-keys-api/src/main/java/org/codehaus/plexus/redback/keys/KeyManager.java delete mode 100644 redback-keys/redback-keys-api/src/main/java/org/codehaus/plexus/redback/keys/KeyManagerException.java delete mode 100644 redback-keys/redback-keys-api/src/main/java/org/codehaus/plexus/redback/keys/KeyNotFoundException.java create mode 100644 redback-keys/redback-keys-api/src/test/java/org/apache/archiva/redback/keys/KeyManagerTest.java delete mode 100644 redback-keys/redback-keys-api/src/test/java/org/codehaus/plexus/redback/keys/KeyManagerTest.java diff --git a/redback-data-management/src/main/java/org/apache/archiva/redback/management/DataManagementTool.java b/redback-data-management/src/main/java/org/apache/archiva/redback/management/DataManagementTool.java index 3df18005b..2c72d8ada 100644 --- a/redback-data-management/src/main/java/org/apache/archiva/redback/management/DataManagementTool.java +++ b/redback-data-management/src/main/java/org/apache/archiva/redback/management/DataManagementTool.java @@ -20,7 +20,7 @@ package org.apache.archiva.redback.management; */ import org.apache.archiva.redback.users.UserManager; -import org.codehaus.plexus.redback.keys.KeyManager; +import org.apache.archiva.redback.keys.KeyManager; import org.codehaus.plexus.redback.rbac.RBACManager; import org.codehaus.plexus.redback.rbac.RbacManagerException; diff --git a/redback-data-management/src/main/java/org/apache/archiva/redback/management/JdoDataManagementTool.java b/redback-data-management/src/main/java/org/apache/archiva/redback/management/JdoDataManagementTool.java index c0cb68933..c9460d920 100644 --- a/redback-data-management/src/main/java/org/apache/archiva/redback/management/JdoDataManagementTool.java +++ b/redback-data-management/src/main/java/org/apache/archiva/redback/management/JdoDataManagementTool.java @@ -34,11 +34,10 @@ import java.util.Map; import javax.xml.stream.XMLStreamException; -import org.apache.archiva.redback.management.DataManagementTool; +import org.apache.archiva.redback.keys.AuthenticationKey; +import org.apache.archiva.redback.keys.KeyManager; import org.apache.archiva.redback.users.UserManager; -import org.codehaus.plexus.redback.keys.AuthenticationKey; -import org.codehaus.plexus.redback.keys.KeyManager; -import org.codehaus.plexus.redback.keys.KeyManagerException; +import org.apache.archiva.redback.keys.KeyManagerException; import org.codehaus.plexus.redback.keys.jdo.AuthenticationKeyDatabase; import org.codehaus.plexus.redback.keys.jdo.io.stax.RedbackKeyManagementJdoStaxReader; import org.codehaus.plexus.redback.keys.jdo.io.stax.RedbackKeyManagementJdoStaxWriter; diff --git a/redback-data-management/src/test/java/org/apache/archiva/redback/management/DataManagementTest.java b/redback-data-management/src/test/java/org/apache/archiva/redback/management/DataManagementTest.java index 654089204..d8ba8b8e6 100644 --- a/redback-data-management/src/test/java/org/apache/archiva/redback/management/DataManagementTest.java +++ b/redback-data-management/src/test/java/org/apache/archiva/redback/management/DataManagementTest.java @@ -21,12 +21,11 @@ package org.apache.archiva.redback.management; import junit.framework.TestCase; import org.apache.archiva.redback.common.jdo.UserConfigurableJdoFactory; -import org.apache.archiva.redback.management.DataManagementTool; +import org.apache.archiva.redback.keys.AuthenticationKey; +import org.apache.archiva.redback.keys.KeyManager; import org.apache.archiva.redback.users.UserManager; import org.apache.commons.lang.SystemUtils; -import org.codehaus.plexus.redback.keys.AuthenticationKey; -import org.codehaus.plexus.redback.keys.KeyManager; -import org.codehaus.plexus.redback.keys.KeyManagerException; +import org.apache.archiva.redback.keys.KeyManagerException; import org.codehaus.plexus.redback.rbac.Permission; import org.codehaus.plexus.redback.rbac.RBACManager; import org.codehaus.plexus.redback.rbac.RbacManagerException; diff --git a/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/mail/MailGenerator.java b/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/mail/MailGenerator.java index 7796a86ca..847258298 100644 --- a/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/mail/MailGenerator.java +++ b/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/mail/MailGenerator.java @@ -19,7 +19,7 @@ package org.codehaus.redback.integration.mail; * under the License. */ -import org.codehaus.plexus.redback.keys.AuthenticationKey; +import org.apache.archiva.redback.keys.AuthenticationKey; /** * Mail generator component. diff --git a/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/mail/Mailer.java b/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/mail/Mailer.java index 3aa3240f9..04aff2252 100644 --- a/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/mail/Mailer.java +++ b/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/mail/Mailer.java @@ -19,7 +19,7 @@ package org.codehaus.redback.integration.mail; * under the License. */ -import org.codehaus.plexus.redback.keys.AuthenticationKey; +import org.apache.archiva.redback.keys.AuthenticationKey; import java.util.Collection; diff --git a/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/mail/MailerImpl.java b/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/mail/MailerImpl.java index 0c30a13d5..e1e3f70fd 100644 --- a/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/mail/MailerImpl.java +++ b/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/mail/MailerImpl.java @@ -34,7 +34,7 @@ import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import org.apache.archiva.redback.configuration.UserConfiguration; -import org.codehaus.plexus.redback.keys.AuthenticationKey; +import org.apache.archiva.redback.keys.AuthenticationKey; import org.codehaus.plexus.redback.policy.UserSecurityPolicy; import org.codehaus.plexus.redback.policy.UserValidationSettings; import org.codehaus.plexus.redback.system.SecuritySystem; diff --git a/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/mail/VelocityMailGenerator.java b/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/mail/VelocityMailGenerator.java index 10b941285..c714d1562 100644 --- a/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/mail/VelocityMailGenerator.java +++ b/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/mail/VelocityMailGenerator.java @@ -19,13 +19,13 @@ package org.codehaus.redback.integration.mail; * under the License. */ +import org.apache.archiva.redback.keys.AuthenticationKey; import org.apache.velocity.VelocityContext; import org.apache.velocity.app.VelocityEngine; import org.apache.velocity.exception.MethodInvocationException; import org.apache.velocity.exception.ParseErrorException; import org.apache.velocity.exception.ResourceNotFoundException; import org.apache.archiva.redback.configuration.UserConfiguration; -import org.codehaus.plexus.redback.keys.AuthenticationKey; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; diff --git a/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/util/AutoLoginCookies.java b/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/util/AutoLoginCookies.java index a78611d8c..d0af0df70 100644 --- a/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/util/AutoLoginCookies.java +++ b/redback-integrations/redback-common-integrations/src/main/java/org/codehaus/redback/integration/util/AutoLoginCookies.java @@ -24,10 +24,10 @@ import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.codehaus.plexus.redback.keys.AuthenticationKey; -import org.codehaus.plexus.redback.keys.KeyManager; -import org.codehaus.plexus.redback.keys.KeyManagerException; -import org.codehaus.plexus.redback.keys.KeyNotFoundException; +import org.apache.archiva.redback.keys.AuthenticationKey; +import org.apache.archiva.redback.keys.KeyManager; +import org.apache.archiva.redback.keys.KeyManagerException; +import org.apache.archiva.redback.keys.KeyNotFoundException; import org.codehaus.plexus.redback.policy.CookieSettings; import org.codehaus.plexus.redback.system.SecuritySystem; import org.codehaus.plexus.util.StringUtils; diff --git a/redback-integrations/redback-common-integrations/src/test/java/org/codehaus/redback/integration/mail/MailGeneratorTest.java b/redback-integrations/redback-common-integrations/src/test/java/org/codehaus/redback/integration/mail/MailGeneratorTest.java index 5814ffe9c..f6f698914 100644 --- a/redback-integrations/redback-common-integrations/src/test/java/org/codehaus/redback/integration/mail/MailGeneratorTest.java +++ b/redback-integrations/redback-common-integrations/src/test/java/org/codehaus/redback/integration/mail/MailGeneratorTest.java @@ -21,11 +21,10 @@ package org.codehaus.redback.integration.mail; import junit.framework.TestCase; import net.sf.ehcache.CacheManager; +import org.apache.archiva.redback.keys.AuthenticationKey; +import org.apache.archiva.redback.keys.KeyManager; import org.codehaus.plexus.jdo.DefaultConfigurableJdoFactory; -import org.codehaus.plexus.jdo.JdoFactory; -import org.codehaus.plexus.redback.keys.AuthenticationKey; -import org.codehaus.plexus.redback.keys.KeyManager; -import org.codehaus.plexus.redback.keys.KeyManagerException; +import org.apache.archiva.redback.keys.KeyManagerException; import org.codehaus.plexus.redback.policy.UserSecurityPolicy; import org.jpox.SchemaTool; import org.junit.Before; diff --git a/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/DefaultLoginService.java b/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/DefaultLoginService.java index e81e83a30..f9cf65066 100644 --- a/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/DefaultLoginService.java +++ b/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/DefaultLoginService.java @@ -19,10 +19,10 @@ package org.codehaus.redback.rest.services; * under the License. */ import org.apache.archiva.redback.authentication.AuthenticationException; +import org.apache.archiva.redback.keys.KeyManager; import org.apache.archiva.redback.users.UserNotFoundException; import org.apache.archiva.redback.authentication.PasswordBasedAuthenticationDataSource; -import org.codehaus.plexus.redback.keys.AuthenticationKey; -import org.codehaus.plexus.redback.keys.KeyManager; +import org.apache.archiva.redback.keys.AuthenticationKey; import org.codehaus.plexus.redback.keys.jdo.JdoAuthenticationKey; import org.codehaus.plexus.redback.keys.memory.MemoryAuthenticationKey; import org.codehaus.plexus.redback.keys.memory.MemoryKeyManager; diff --git a/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/DefaultPasswordService.java b/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/DefaultPasswordService.java index 00a9c4d36..f3088184b 100644 --- a/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/DefaultPasswordService.java +++ b/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/DefaultPasswordService.java @@ -20,8 +20,8 @@ package org.codehaus.redback.rest.services; import org.apache.archiva.redback.users.User; import org.apache.commons.lang.StringUtils; -import org.codehaus.plexus.redback.keys.AuthenticationKey; -import org.codehaus.plexus.redback.keys.KeyManagerException; +import org.apache.archiva.redback.keys.AuthenticationKey; +import org.apache.archiva.redback.keys.KeyManagerException; import org.codehaus.plexus.redback.policy.PasswordEncoder; import org.codehaus.plexus.redback.policy.PasswordRuleViolationException; import org.codehaus.plexus.redback.policy.PasswordRuleViolations; diff --git a/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/DefaultUserService.java b/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/DefaultUserService.java index 7272a5293..cf167faf4 100644 --- a/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/DefaultUserService.java +++ b/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/codehaus/redback/rest/services/DefaultUserService.java @@ -21,16 +21,16 @@ package org.codehaus.redback.rest.services; import net.sf.ehcache.CacheManager; import org.apache.archiva.redback.configuration.UserConfiguration; +import org.apache.archiva.redback.keys.AuthenticationKey; import org.apache.archiva.redback.users.UserManager; import org.apache.archiva.redback.users.UserNotFoundException; import org.apache.commons.lang.StringUtils; import org.codehaus.plexus.cache.Cache; import org.apache.archiva.redback.authentication.AuthenticationException; import org.apache.archiva.redback.authentication.TokenBasedAuthenticationDataSource; -import org.codehaus.plexus.redback.keys.AuthenticationKey; -import org.codehaus.plexus.redback.keys.KeyManager; -import org.codehaus.plexus.redback.keys.KeyManagerException; -import org.codehaus.plexus.redback.keys.KeyNotFoundException; +import org.apache.archiva.redback.keys.KeyManager; +import org.apache.archiva.redback.keys.KeyManagerException; +import org.apache.archiva.redback.keys.KeyNotFoundException; import org.codehaus.plexus.redback.policy.AccountLockedException; import org.codehaus.plexus.redback.policy.MustChangePasswordException; import org.codehaus.plexus.redback.policy.PasswordEncoder; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/LoginAction.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/LoginAction.java index 4d1be692a..ccf43e893 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/LoginAction.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/LoginAction.java @@ -19,6 +19,7 @@ package org.codehaus.plexus.redback.struts2.action; * under the License. */ +import org.apache.archiva.redback.keys.AuthenticationKey; import org.apache.archiva.redback.users.User; import org.apache.struts2.ServletActionContext; import org.apache.archiva.redback.authentication.AuthenticationConstants; @@ -28,9 +29,8 @@ import org.apache.archiva.redback.authentication.AuthenticationResult; import org.apache.archiva.redback.authentication.PasswordBasedAuthenticationDataSource; import org.apache.archiva.redback.authentication.TokenBasedAuthenticationDataSource; import org.apache.archiva.redback.configuration.UserConfiguration; -import org.codehaus.plexus.redback.keys.AuthenticationKey; -import org.codehaus.plexus.redback.keys.KeyManagerException; -import org.codehaus.plexus.redback.keys.KeyNotFoundException; +import org.apache.archiva.redback.keys.KeyManagerException; +import org.apache.archiva.redback.keys.KeyNotFoundException; import org.codehaus.plexus.redback.policy.AccountLockedException; import org.codehaus.plexus.redback.policy.MustChangePasswordException; import org.codehaus.plexus.redback.system.SecuritySession; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/PasswordResetAction.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/PasswordResetAction.java index e450e3ac8..81235f95c 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/PasswordResetAction.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/PasswordResetAction.java @@ -19,11 +19,11 @@ package org.codehaus.plexus.redback.struts2.action; * under the License. */ +import org.apache.archiva.redback.keys.KeyManager; import org.apache.archiva.redback.users.UserManager; import org.apache.archiva.redback.users.UserNotFoundException; -import org.codehaus.plexus.redback.keys.AuthenticationKey; -import org.codehaus.plexus.redback.keys.KeyManager; -import org.codehaus.plexus.redback.keys.KeyManagerException; +import org.apache.archiva.redback.keys.AuthenticationKey; +import org.apache.archiva.redback.keys.KeyManagerException; import org.codehaus.plexus.redback.policy.UserSecurityPolicy; import org.codehaus.plexus.redback.system.SecuritySystem; import org.apache.archiva.redback.users.User; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/RegisterAction.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/RegisterAction.java index 414997658..f5873e128 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/RegisterAction.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/RegisterAction.java @@ -19,9 +19,9 @@ package org.codehaus.plexus.redback.struts2.action; * under the License. */ +import org.apache.archiva.redback.keys.AuthenticationKey; import org.apache.archiva.redback.users.User; -import org.codehaus.plexus.redback.keys.AuthenticationKey; -import org.codehaus.plexus.redback.keys.KeyManagerException; +import org.apache.archiva.redback.keys.KeyManagerException; import org.codehaus.plexus.redback.policy.UserSecurityPolicy; import org.codehaus.plexus.redback.role.RoleManager; import org.codehaus.plexus.redback.role.RoleManagerException; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/BackupRestoreAction.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/BackupRestoreAction.java index 04fbaa7f0..871da592f 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/BackupRestoreAction.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/action/admin/BackupRestoreAction.java @@ -21,7 +21,7 @@ package org.codehaus.plexus.redback.struts2.action.admin; import com.opensymphony.xwork2.Preparable; import org.apache.commons.lang.StringUtils; -import org.codehaus.plexus.redback.keys.KeyManager; +import org.apache.archiva.redback.keys.KeyManager; import org.apache.archiva.redback.management.DataManagementTool; import org.codehaus.plexus.redback.rbac.RBACManager; import org.codehaus.plexus.redback.rbac.Resource; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/interceptor/AutoLoginInterceptor.java b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/interceptor/AutoLoginInterceptor.java index 40d2ce61a..3677c7e6a 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/interceptor/AutoLoginInterceptor.java +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/main/java/org/codehaus/plexus/redback/struts2/interceptor/AutoLoginInterceptor.java @@ -22,11 +22,11 @@ package org.codehaus.plexus.redback.struts2.interceptor; import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.interceptor.Interceptor; +import org.apache.archiva.redback.keys.AuthenticationKey; import org.apache.struts2.ServletActionContext; import org.apache.archiva.redback.authentication.AuthenticationException; import org.apache.archiva.redback.authentication.AuthenticationResult; import org.apache.archiva.redback.authentication.TokenBasedAuthenticationDataSource; -import org.codehaus.plexus.redback.keys.AuthenticationKey; import org.codehaus.plexus.redback.policy.AccountLockedException; import org.codehaus.plexus.redback.policy.MustChangePasswordException; import org.codehaus.plexus.redback.system.SecuritySession; diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/test/resources/org/codehaus/plexus/redback/struts2/action/admin/AssignmentsActionTest.xml b/redback-integrations/redback-struts2/redback-struts2-integration/src/test/resources/org/codehaus/plexus/redback/struts2/action/admin/AssignmentsActionTest.xml index 79fb9a89d..1705a1fc1 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/test/resources/org/codehaus/plexus/redback/struts2/action/admin/AssignmentsActionTest.xml +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/test/resources/org/codehaus/plexus/redback/struts2/action/admin/AssignmentsActionTest.xml @@ -87,13 +87,13 @@ - org.codehaus.plexus.redback.keys.KeyManager + org.apache.archiva.redback.keys.KeyManager cached org.codehaus.plexus.redback.keys.cached.CachedKeyManager CachedKeyManager - org.codehaus.plexus.redback.keys.KeyManager + org.apache.archiva.redback.keys.KeyManager memory keyImpl diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/test/resources/org/codehaus/plexus/redback/struts2/action/admin/UserEditActionTest.xml b/redback-integrations/redback-struts2/redback-struts2-integration/src/test/resources/org/codehaus/plexus/redback/struts2/action/admin/UserEditActionTest.xml index 79fb9a89d..1705a1fc1 100644 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/test/resources/org/codehaus/plexus/redback/struts2/action/admin/UserEditActionTest.xml +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/test/resources/org/codehaus/plexus/redback/struts2/action/admin/UserEditActionTest.xml @@ -87,13 +87,13 @@ - org.codehaus.plexus.redback.keys.KeyManager + org.apache.archiva.redback.keys.KeyManager cached org.codehaus.plexus.redback.keys.cached.CachedKeyManager CachedKeyManager - org.codehaus.plexus.redback.keys.KeyManager + org.apache.archiva.redback.keys.KeyManager memory keyImpl diff --git a/redback-integrations/redback-struts2/redback-struts2-integration/src/test/resources/spring-context.xml b/redback-integrations/redback-struts2/redback-struts2-integration/src/test/resources/spring-context.xml index 62e3d199b..aa9e46143 100755 --- a/redback-integrations/redback-struts2/redback-struts2-integration/src/test/resources/spring-context.xml +++ b/redback-integrations/redback-struts2/redback-struts2-integration/src/test/resources/spring-context.xml @@ -122,13 +122,13 @@