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
This commit is contained in:
parent
e17a252b36
commit
eec9033b6b
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -87,13 +87,13 @@
|
|||
</requirements>
|
||||
</component>
|
||||
<component>
|
||||
<role>org.codehaus.plexus.redback.keys.KeyManager</role>
|
||||
<role>org.apache.archiva.redback.keys.KeyManager</role>
|
||||
<role-hint>cached</role-hint>
|
||||
<implementation>org.codehaus.plexus.redback.keys.cached.CachedKeyManager</implementation>
|
||||
<description>CachedKeyManager</description>
|
||||
<requirements>
|
||||
<requirement>
|
||||
<role>org.codehaus.plexus.redback.keys.KeyManager</role>
|
||||
<role>org.apache.archiva.redback.keys.KeyManager</role>
|
||||
<role-hint>memory</role-hint>
|
||||
<field-name>keyImpl</field-name>
|
||||
</requirement>
|
||||
|
|
|
@ -87,13 +87,13 @@
|
|||
</requirements>
|
||||
</component>
|
||||
<component>
|
||||
<role>org.codehaus.plexus.redback.keys.KeyManager</role>
|
||||
<role>org.apache.archiva.redback.keys.KeyManager</role>
|
||||
<role-hint>cached</role-hint>
|
||||
<implementation>org.codehaus.plexus.redback.keys.cached.CachedKeyManager</implementation>
|
||||
<description>CachedKeyManager</description>
|
||||
<requirements>
|
||||
<requirement>
|
||||
<role>org.codehaus.plexus.redback.keys.KeyManager</role>
|
||||
<role>org.apache.archiva.redback.keys.KeyManager</role>
|
||||
<role-hint>memory</role-hint>
|
||||
<field-name>keyImpl</field-name>
|
||||
</requirement>
|
||||
|
|
|
@ -122,13 +122,13 @@
|
|||
</bean>
|
||||
<!--
|
||||
<component>
|
||||
<role>org.codehaus.plexus.redback.keys.KeyManager</role>
|
||||
<role>org.apache.archiva.redback.keys.KeyManager</role>
|
||||
<role-hint>cached</role-hint>
|
||||
<implementation>org.codehaus.plexus.redback.keys.cached.CachedKeyManager</implementation>
|
||||
<description>CachedKeyManager</description>
|
||||
<requirements>
|
||||
<requirement>
|
||||
<role>org.codehaus.plexus.redback.keys.KeyManager</role>
|
||||
<role>org.apache.archiva.redback.keys.KeyManager</role>
|
||||
<role-hint>memory</role-hint>
|
||||
<field-name>keyImpl</field-name>
|
||||
</requirement>
|
||||
|
|
|
@ -24,10 +24,10 @@ import org.apache.archiva.redback.authentication.AuthenticationException;
|
|||
import org.apache.archiva.redback.authentication.AuthenticationResult;
|
||||
import org.apache.archiva.redback.authentication.Authenticator;
|
||||
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.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.AccountLockedException;
|
||||
import org.codehaus.plexus.redback.policy.MustChangePasswordException;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.keys;
|
||||
package org.apache.archiva.redback.keys;
|
||||
|
||||
/*
|
||||
* Copyright 2001-2006 The Apache Software Foundation.
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.keys;
|
||||
package org.apache.archiva.redback.keys;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
|
@ -31,23 +31,30 @@ import java.util.Date;
|
|||
*/
|
||||
public interface AuthenticationKey
|
||||
{
|
||||
public Date getDateCreated();
|
||||
public Date getDateExpires();
|
||||
public String getForPrincipal();
|
||||
public String getKey();
|
||||
Date getDateCreated();
|
||||
|
||||
Date getDateExpires();
|
||||
|
||||
String getForPrincipal();
|
||||
|
||||
String getKey();
|
||||
|
||||
/**
|
||||
* A String representation of what the purpose of existence is for this key.
|
||||
*
|
||||
* <p/>
|
||||
* Examples: "selfservice password reset", "inter system communications", "remember me"
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getPurpose();
|
||||
String getPurpose();
|
||||
|
||||
public void setDateCreated( Date dateCreated );
|
||||
public void setDateExpires( Date dateExpires );
|
||||
public void setForPrincipal( String forPrincipal );
|
||||
public void setKey( String key );
|
||||
public void setPurpose( String requestedFrom );
|
||||
void setDateCreated( Date dateCreated );
|
||||
|
||||
void setDateExpires( Date dateExpires );
|
||||
|
||||
void setForPrincipal( String forPrincipal );
|
||||
|
||||
void setKey( String key );
|
||||
|
||||
void setPurpose( String requestedFrom );
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.keys;
|
||||
package org.apache.archiva.redback.keys;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.keys;
|
||||
package org.apache.archiva.redback.keys;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.keys;
|
||||
package org.apache.archiva.redback.keys;
|
||||
|
||||
/*
|
||||
* Copyright 2001-2006 The Apache Software Foundation.
|
||||
|
@ -16,6 +16,8 @@ package org.codehaus.plexus.redback.keys;
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.keys.KeyManagerException;
|
||||
|
||||
/**
|
||||
* KeyNotFoundException
|
||||
*
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.keys;
|
||||
package org.apache.archiva.redback.keys;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
|
@ -22,6 +22,10 @@ package org.codehaus.plexus.redback.keys;
|
|||
import java.util.List;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.apache.archiva.redback.keys.AbstractKeyManager;
|
||||
import org.apache.archiva.redback.keys.AuthenticationKey;
|
||||
import org.apache.archiva.redback.keys.KeyManagerException;
|
||||
import org.apache.archiva.redback.keys.KeyNotFoundException;
|
||||
|
||||
public class KeyManagerTest
|
||||
extends TestCase
|
|
@ -21,16 +21,15 @@ package org.codehaus.plexus.redback.keys.cached;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Named;
|
||||
|
||||
import org.codehaus.plexus.cache.Cache;
|
||||
import org.codehaus.plexus.redback.keys.AbstractKeyManager;
|
||||
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.AbstractKeyManager;
|
||||
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.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,7 +20,7 @@ package org.codehaus.plexus.redback.keys.cached;
|
|||
*/
|
||||
|
||||
import net.sf.ehcache.CacheManager;
|
||||
import org.codehaus.plexus.redback.keys.KeyManager;
|
||||
import org.apache.archiva.redback.keys.KeyManager;
|
||||
import org.codehaus.plexus.redback.keys.KeyManagerTestCase;
|
||||
import org.junit.Before;
|
||||
|
||||
|
|
|
@ -19,14 +19,14 @@ package org.codehaus.plexus.redback.keys.jdo;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.keys.AuthenticationKey;
|
||||
import org.codehaus.plexus.jdo.JdoFactory;
|
||||
import org.codehaus.plexus.jdo.PlexusJdoUtils;
|
||||
import org.codehaus.plexus.jdo.PlexusObjectNotFoundException;
|
||||
import org.codehaus.plexus.jdo.PlexusStoreException;
|
||||
import org.codehaus.plexus.redback.keys.AbstractKeyManager;
|
||||
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.AbstractKeyManager;
|
||||
import org.apache.archiva.redback.keys.KeyManagerException;
|
||||
import org.apache.archiva.redback.keys.KeyNotFoundException;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.jpox.PersistenceManagerFactoryImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
|
@ -50,10 +50,10 @@
|
|||
<name>JdoAuthenticationKey</name>
|
||||
<version>1.0.0+</version>
|
||||
<interfaces>
|
||||
<interface>org.codehaus.plexus.redback.keys.AuthenticationKey</interface>
|
||||
<interface>org.apache.archiva.redback.keys.AuthenticationKey</interface>
|
||||
</interfaces>
|
||||
<description>
|
||||
@plexus.component role="org.codehaus.plexus.redback.keys.AuthenticationKey"
|
||||
@plexus.component role="org.apache.archiva.redback.keys.AuthenticationKey"
|
||||
role-hint="jdo"
|
||||
</description>
|
||||
<fields>
|
||||
|
|
|
@ -19,8 +19,8 @@ package org.codehaus.plexus.redback.keys.jdo;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.keys.KeyManager;
|
||||
import org.codehaus.plexus.jdo.DefaultConfigurableJdoFactory;
|
||||
import org.codehaus.plexus.redback.keys.KeyManager;
|
||||
import org.codehaus.plexus.redback.keys.KeyManagerTestCase;
|
||||
import org.jpox.SchemaTool;
|
||||
import org.junit.Before;
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.codehaus.plexus.redback.keys.memory;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.keys.AuthenticationKey;
|
||||
import org.apache.archiva.redback.keys.AuthenticationKey;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
|
|
|
@ -19,10 +19,10 @@ package org.codehaus.plexus.redback.keys.memory;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.keys.AbstractKeyManager;
|
||||
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.AbstractKeyManager;
|
||||
import org.apache.archiva.redback.keys.AuthenticationKey;
|
||||
import org.apache.archiva.redback.keys.KeyManagerException;
|
||||
import org.apache.archiva.redback.keys.KeyNotFoundException;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.codehaus.plexus.redback.keys.memory;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.keys.KeyManager;
|
||||
import org.apache.archiva.redback.keys.KeyManager;
|
||||
import org.codehaus.plexus.redback.keys.KeyManagerTestCase;
|
||||
import org.junit.Before;
|
||||
|
||||
|
|
|
@ -17,6 +17,10 @@ package org.codehaus.plexus.redback.keys;
|
|||
*/
|
||||
|
||||
import junit.framework.TestCase;
|
||||
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.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
|
|
@ -19,6 +19,7 @@ package org.codehaus.plexus.redback.system;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.keys.KeyManager;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.apache.archiva.redback.users.UserNotFoundException;
|
||||
|
@ -30,7 +31,6 @@ import org.apache.archiva.redback.authorization.AuthorizationDataSource;
|
|||
import org.apache.archiva.redback.authorization.AuthorizationException;
|
||||
import org.apache.archiva.redback.authorization.AuthorizationResult;
|
||||
import org.apache.archiva.redback.authorization.Authorizer;
|
||||
import org.codehaus.plexus.redback.keys.KeyManager;
|
||||
import org.codehaus.plexus.redback.policy.AccountLockedException;
|
||||
import org.codehaus.plexus.redback.policy.MustChangePasswordException;
|
||||
import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.apache.archiva.redback.authentication.AuthenticationDataSource;
|
|||
import org.apache.archiva.redback.authentication.AuthenticationException;
|
||||
import org.apache.archiva.redback.authorization.AuthorizationException;
|
||||
import org.apache.archiva.redback.authorization.AuthorizationResult;
|
||||
import org.codehaus.plexus.redback.keys.KeyManager;
|
||||
import org.apache.archiva.redback.keys.KeyManager;
|
||||
import org.codehaus.plexus.redback.policy.AccountLockedException;
|
||||
import org.codehaus.plexus.redback.policy.MustChangePasswordException;
|
||||
import org.codehaus.plexus.redback.policy.UserSecurityPolicy;
|
||||
|
|
Loading…
Reference in New Issue