[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-cvs-commits
Subject:    [jboss-cvs] jboss-aspects/src/main/org/jboss/aspects/security SecurityClientInterceptor.java
From:       Bill Burke <patriot1burke () users ! sourceforge ! net>
Date:       2004-08-31 21:27:26
Message-ID: E1C2GA2-00059j-BX () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

  User: patriot1burke
  Date: 04/08/31 14:27:26

  Modified:    src/main/org/jboss/aspects/security
                        SecurityClientInterceptor.java
  Log:
  tx and security propagation issues
  
  Revision  Changes    Path
  1.3       +9 -3      \
jboss-aspects/src/main/org/jboss/aspects/security/SecurityClientInterceptor.java  
  Index: SecurityClientInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-aspects/src/main/org/jboss/aspects/security/SecurityClientInterceptor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SecurityClientInterceptor.java	30 Aug 2004 21:20:16 -0000	1.2
  +++ SecurityClientInterceptor.java	31 Aug 2004 21:27:26 -0000	1.3
  @@ -9,15 +9,17 @@
   import org.jboss.security.SecurityAssociation;
   
   import java.security.Principal;
  +import java.io.ObjectStreamException;
   
   /** 
    * The AuthenticationInterceptor authenticates the caller.
    *
    * @author <a href="bill@jboss.org">Bill Burke</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */
  -public final class SecurityClientInterceptor implements \
org.jboss.aop.advice.Interceptor  +public final class SecurityClientInterceptor \
implements org.jboss.aop.advice.Interceptor, java.io.Serializable  {
  +   public static final SecurityClientInterceptor singleton = new \
SecurityClientInterceptor();  public String getName() { return \
"SecurityClientInterceptor"; }  
      /**
  @@ -31,8 +33,12 @@
         if (principal != null) invocation.getMetaData().addMetaData("security", \
"principal", principal);  
         Object credential = SecurityAssociation.getCredential();
  -      if (credential != null) invocation.getMetaData().addMetaData("security", \
"credential", principal);  +      if (credential != null) \
invocation.getMetaData().addMetaData("security", "credential", credential);  
         return invocation.invokeNext();
      }
  +
  +   Object readResolve() throws ObjectStreamException {
  +      return singleton;
  +   }
   }
  
  
  


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic