mirror of https://github.com/apache/maven.git
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:
parent
a9ea4c8b11
commit
6f47dab728
|
@ -57,14 +57,13 @@
|
||||||
<version>1.2_Java1.3</version>
|
<version>1.2_Java1.3</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!--
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jsecurity</groupId>
|
<groupId>org.jsecurity</groupId>
|
||||||
<artifactId>jsecurity</artifactId>
|
<artifactId>jsecurity</artifactId>
|
||||||
</dependency>
|
</dependency>
-->
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
}
|
|
4
pom.xml
4
pom.xml
|
@ -25,7 +25,7 @@
|
||||||
<version>3.0-SNAPSHOT</version>
|
<version>3.0-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<name>Apache Maven</name>
|
<name>Apache Maven 3.x</name>
|
||||||
<description>Maven is a project development management and
|
<description>Maven is a project development management and
|
||||||
comprehension tool. Based on the concept of a project object model:
|
comprehension tool. Based on the concept of a project object model:
|
||||||
builds, dependency management, documentation creation, site
|
builds, dependency management, documentation creation, site
|
||||||
|
@ -289,11 +289,13 @@
|
||||||
<artifactId>plexus-plugin-manager</artifactId>
|
<artifactId>plexus-plugin-manager</artifactId>
|
||||||
<version>${plexusPluginManagerVersion}</version>
|
<version>${plexusPluginManagerVersion}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!--
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jsecurity</groupId>
|
<groupId>org.jsecurity</groupId>
|
||||||
<artifactId>jsecurity</artifactId>
|
<artifactId>jsecurity</artifactId>
|
||||||
<version>0.9.0-RC2</version>
|
<version>0.9.0-RC2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
-->
|
||||||
<!--bootstrap-start-comment-->
|
<!--bootstrap-start-comment-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>easymock</groupId>
|
<groupId>easymock</groupId>
|
||||||
|
|
Loading…
Reference in New Issue