User: starksm
Date: 01/06/12 01:00:43
Modified: src/main/org/jboss/security AnybodyPrincipal.java
NobodyPrincipal.java
Added: src/main/org/jboss/security EJBSecurityManager.java
RealmMapping.java SecurityAssociation.java
SecurityProxy.java SecurityProxyFactory.java
SimplePrincipal.java SubjectSecurityManager.java
Log:
Move the security related files that make up the security plugin
interface back to the jboss module as it should build without the
JBossSX implementation
Revision Changes Path
1.2 +4 -1 jboss/src/main/org/jboss/security/AnybodyPrincipal.java
Index: AnybodyPrincipal.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/security/AnybodyPrincipal.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AnybodyPrincipal.java 2001/06/11 06:15:57 1.1
+++ AnybodyPrincipal.java 2001/06/12 08:00:43 1.2
@@ -13,8 +13,11 @@
using {@link #equals(Object) equals} or {@link #compareTo(Object) compareTo}
will always be found equals to the AnybodyPrincipal.
+Note that this class is not likely to operate correctly in a collection
+since the hashCode() and equals() methods are not correlated.
+
@author [EMAIL PROTECTED]
-@version $Revision: 1.1 $
+@version $Revision: 1.2 $
*/
public class AnybodyPrincipal implements Comparable, Principal
{
1.2 +4 -1 jboss/src/main/org/jboss/security/NobodyPrincipal.java
Index: NobodyPrincipal.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/security/NobodyPrincipal.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- NobodyPrincipal.java 2001/06/11 06:15:57 1.1
+++ NobodyPrincipal.java 2001/06/12 08:00:43 1.2
@@ -13,8 +13,11 @@
using {@link #equals(Object) equals} or {@link #compareTo(Object) compareTo}
will always be found not equal to the NobodyPrincipal.
+Note that this class is not likely to operate correctly in a collection
+since the hashCode() and equals() methods are not correlated.
+
@author [EMAIL PROTECTED]
-@version $Revision: 1.1 $
+@version $Revision: 1.2 $
*/
public class NobodyPrincipal implements Comparable, Principal
{
1.3 +0 -22 jboss/src/main/org/jboss/security/EJBSecurityManager.java
1.3 +26 -9 jboss/src/main/org/jboss/security/RealmMapping.java
1.3 +62 -9 jboss/src/main/org/jboss/security/SecurityAssociation.java
1.1 jboss/src/main/org/jboss/security/SecurityProxy.java
Index: SecurityProxy.java
===================================================================
/*
* JBoss, the OpenSource EJB server
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.security;
import java.lang.reflect.Method;
import javax.ejb.EJBContext;
/** An interface describing the requirements for a SecurityInterceptor proxy.
A SecurityProxy allows for the externalization of custom security checks
on a per-method basis for both the EJB home and remote interface methods.
Custom security checks are those that cannot be described using the
standard EJB deployment time declarative role based security.
@author [EMAIL PROTECTED]
@version $Revision: 1.1 $
* @stereotype plug-in point
*/
public interface SecurityProxy
{
public void init(Class beanHome, Class beanRemote, Object securityMgr) throws
InstantiationException;
/** Called prior to any method invocation to set the current EJB context.
*/
public void setEJBContext(EJBContext ctx);
/** Called to allow the security proxy to perform any custom security
checks required for the EJB home interface method.
@param m, the EJB home interface method? Or is this the EJB bean impl method?
*/
public void invokeHome(Method m, Object[] args) throws SecurityException;
/** Called to allow the security proxy to perform any custom security
checks required for the EJB remote interface method.
@param m, the EJB remote interface method? Or is this the EJB bean impl method?
@param bean, the EJB implementation class instance
*/
public void invoke(Method m, Object[] args, Object bean) throws
SecurityException;
}
1.1 jboss/src/main/org/jboss/security/SecurityProxyFactory.java
Index: SecurityProxyFactory.java
===================================================================
/*
* JBoss, the OpenSource EJB server
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.security;
/** An interface for factories of SecurityProxy objects. It is used
to create a SecurityProxy from a security delegate object that is
not a SecurityProxy instance.
@author [EMAIL PROTECTED]
@version $Revision: 1.1 $
*/
public interface SecurityProxyFactory
{
public SecurityProxy create(Object proxyDelegate);
}
1.3 +14 -1 jboss/src/main/org/jboss/security/SimplePrincipal.java
1.3 +0 -0 jboss/src/main/org/jboss/security/SubjectSecurityManager.java
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development