maguro      2005/04/12 11:27:49

  Modified:    modules/core/src/java/org/openejb/corba/security/config/tss
                        TSSCompoundSecMechConfig.java
  Log:

  Helpful debugging messages
  
  Revision  Changes    Path
  1.4       +11 -1     
openejb/modules/core/src/java/org/openejb/corba/security/config/tss/TSSCompoundSecMechConfig.java
  
  Index: TSSCompoundSecMechConfig.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/corba/security/config/tss/TSSCompoundSecMechConfig.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TSSCompoundSecMechConfig.java     28 Mar 2005 21:00:19 -0000      1.3
  +++ TSSCompoundSecMechConfig.java     12 Apr 2005 15:27:49 -0000      1.4
  @@ -52,6 +52,10 @@
   import org.omg.CORBA.ORB;
   import org.omg.CSIIOP.CompoundSecMech;
   import org.omg.IOP.Codec;
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
  +
  +import org.openejb.corba.security.config.ConfigUtil;
   
   
   /**
  @@ -59,6 +63,7 @@
    */
   public class TSSCompoundSecMechConfig implements Serializable {
   
  +    private final static Log log = 
LogFactory.getLog(TSSCompoundSecMechConfig.class);
       private TSSTransportMechConfig transport_mech;
       private TSSASMechConfig as_mech;
       private TSSSASMechConfig sas_mech;
  @@ -115,14 +120,19 @@
           // transport mechanism
           result.transport_mech = transport_mech.encodeIOR(orb, codec);
           result.target_requires |= transport_mech.getRequires();
  +        if (log.isDebugEnabled()) log.debug("transport adds: " + 
ConfigUtil.flags(transport_mech.getRequires()));
   
           // AS_ContextSec
           result.as_context_mech = as_mech.encodeIOR(orb, codec);
           result.target_requires |= as_mech.getRequires();
  +        if (log.isDebugEnabled()) log.debug("AS adds: " + 
ConfigUtil.flags(as_mech.getRequires()));
   
           // SAS_ContextSec
           result.sas_context_mech = sas_mech.encodeIOR(orb, codec);
           result.target_requires |= sas_mech.getRequires();
  +        if (log.isDebugEnabled()) log.debug("SAS adds: " + 
ConfigUtil.flags(sas_mech.getRequires()));
  +
  +        if (log.isDebugEnabled()) log.debug("REQUIRES: " + 
ConfigUtil.flags(result.target_requires));
   
           return result;
       }
  
  
  

Reply via email to