o going to work on the security manager on a branch

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@798717 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2009-07-28 22:01:48 +00:00
parent a9ea4c8b11
commit 6f47dab728
4 changed files with 6 additions and 41 deletions

View File

@ -57,14 +57,13 @@
<version>1.2_Java1.3</version>
<scope>test</scope>
</dependency>
<!--
<dependency>
<groupId>org.jsecurity</groupId>
<artifactId>jsecurity</artifactId>
</dependency>
</dependency> -->
</dependencies>
<build>
<plugins>
<plugin>

View File

@ -1,25 +0,0 @@
package org.apache.maven.repository.security;
import org.codehaus.plexus.component.annotations.Component;
import org.codehaus.plexus.component.annotations.Requirement;
import org.jsecurity.authc.AuthenticationException;
import org.jsecurity.authc.AuthenticationInfo;
import org.jsecurity.authc.AuthenticationToken;
import org.jsecurity.authc.Authenticator;
@Component(role=RepositorySystemSecurityManager.class)
public class DefaultRepositorySystemSecurityManager
implements RepositorySystemSecurityManager
{
@Requirement
private Authenticator authenticator;
public AuthenticationInfo authenticate( AuthenticationToken token )
throws AuthenticationException
{
AuthenticationInfo authenticationInfo = authenticator.authenticate( token );
return authenticationInfo;
}
}

View File

@ -1,11 +0,0 @@
package org.apache.maven.repository.security;
import org.jsecurity.authc.AuthenticationException;
import org.jsecurity.authc.AuthenticationInfo;
import org.jsecurity.authc.AuthenticationToken;
public interface RepositorySystemSecurityManager
{
public AuthenticationInfo authenticate( AuthenticationToken token )
throws AuthenticationException;
}

View File

@ -25,7 +25,7 @@
<version>3.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Apache Maven</name>
<name>Apache Maven 3.x</name>
<description>Maven is a project development management and
comprehension tool. Based on the concept of a project object model:
builds, dependency management, documentation creation, site
@ -289,11 +289,13 @@
<artifactId>plexus-plugin-manager</artifactId>
<version>${plexusPluginManagerVersion}</version>
</dependency>
<!--
<dependency>
<groupId>org.jsecurity</groupId>
<artifactId>jsecurity</artifactId>
<version>0.9.0-RC2</version>
</dependency>
-->
<!--bootstrap-start-comment-->
<dependency>
<groupId>easymock</groupId>