directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1042743 [1/2] - in /directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src: main/java/org/apache/directory/shared/kerberos/codec/ main/java/org/apache/directory/shared/kerberos/codec/EncKdcRepPart/ main/java/org/apache/...
Date Mon, 06 Dec 2010 17:43:14 GMT
Author: elecharny
Date: Mon Dec  6 17:43:13 2010
New Revision: 1042743

URL: http://svn.apache.org/viewvc?rev=1042743&view=rev
Log:
Injected the stream in all the composite decoder containers

Modified:
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/EncKdcRepPart/EncKdcRepPartContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/KerberosMessageGrammar.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/apRep/ApRepContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/apReq/ApReqContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/apReq/actions/StoreTicket.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asRep/AsRepContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asRep/actions/StoreKdcRep.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asReq/AsReqContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asReq/actions/StoreKdcReq.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/authenticator/AuthenticatorContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encApRepPart/EncApRepPartContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encAsRepPart/EncAsRepPartContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encAsRepPart/actions/StoreEncAsRepPart.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encKrbCredPart/EncKrbCredPartContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encKrbPrivPart/EncKrbPrivPartContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encTgsRepPart/EncTgsRepPartContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encTgsRepPart/actions/StoreEncTgsRepPart.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encTicketPart/EncTicketPartContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcRep/KdcRepContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcRep/actions/StoreTicket.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReq/KdcReqContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReq/actions/StoreKdcReqBody.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/KdcReqBodyContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddTicket.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbCred/KrbCredContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbCred/actions/StoreTickets.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbError/KrbErrorContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbPriv/KrbPrivContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbSafe/KrbSafeContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsRep/TgsRepContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsRep/actions/StoreKdcRep.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsReq/TgsReqContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsReq/actions/StoreKdcReq.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/ticket/TicketContainer.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/AuthenticatorDecoderTest.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncApRepPartDecoderTest.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncAsRepPartDecoderTest.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKdcRepPartDecoderTest.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKrbCredPartDecoderTest.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKrbPrivPartDecoderTest.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncTgsRepPartDecoderTest.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncTicketPartDecoderTest.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/KdcReqBodyDecoderTest.java
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/TicketDecoderTest.java

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/EncKdcRepPart/EncKdcRepPartContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/EncKdcRepPart/EncKdcRepPartContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/EncKdcRepPart/EncKdcRepPartContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/EncKdcRepPart/EncKdcRepPartContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.EncKdcRepPart;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.components.EncKdcRepPart;
 
@@ -35,10 +37,11 @@ public class EncKdcRepPartContainer exte
     
     /**
      * Creates a new EncKdcRepPartContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public EncKdcRepPartContainer()
+    public EncKdcRepPartContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = EncKdcRepPartGrammar.getInstance();
         setTransition( EncKdcRepPartStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/KerberosMessageGrammar.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/KerberosMessageGrammar.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/KerberosMessageGrammar.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/KerberosMessageGrammar.java Mon Dec  6 17:43:13 2010
@@ -79,12 +79,11 @@ public final class KerberosMessageGramma
             TLV tlv = kerberosMessageContainer.getCurrentTLV();
             kerberosMessageContainer.setGrammarEndAllowed( true );
 
-            // Now, dependening on the T, call the inner decoder
+            // Now, depending on the T, call the inner decoder
             switch ( tlv.getTag() )
             {
                 case KerberosConstants.AS_REQ_TAG :
-                    AsReqContainer asReqContainer = new AsReqContainer();
-                    asReqContainer.setStream( stream );
+                    AsReqContainer asReqContainer = new AsReqContainer( stream );
                     
                     // Decode the AS_REQ PDU
                     try
@@ -102,8 +101,7 @@ public final class KerberosMessageGramma
                     break;
 
                 case KerberosConstants.AS_REP_TAG :
-                    AsRepContainer asRepContainer = new AsRepContainer();
-                    asRepContainer.setStream( stream );
+                    AsRepContainer asRepContainer = new AsRepContainer( stream );
                     
                     // Decode the AS-REP PDU
                     try
@@ -121,8 +119,7 @@ public final class KerberosMessageGramma
                     break;
 
                 case KerberosConstants.TGS_REQ_TAG :
-                    TgsReqContainer tgsReqContainer = new TgsReqContainer();
-                    tgsReqContainer.setStream( stream );
+                    TgsReqContainer tgsReqContainer = new TgsReqContainer( stream );
                     
                     // Decode the TGS-REQ PDU
                     try
@@ -140,8 +137,7 @@ public final class KerberosMessageGramma
                     break;
 
                 case KerberosConstants.TGS_REP_TAG :
-                    TgsRepContainer tgsRepContainer = new TgsRepContainer();
-                    tgsRepContainer.setStream( stream );
+                    TgsRepContainer tgsRepContainer = new TgsRepContainer( stream );
                     
                     // Decode the TGS-REP PDU
                     try
@@ -159,8 +155,7 @@ public final class KerberosMessageGramma
                     break;
 
                 case KerberosConstants.AP_REQ_TAG :
-                    ApReqContainer apReqContainer = new ApReqContainer();
-                    apReqContainer.setStream( stream );
+                    ApReqContainer apReqContainer = new ApReqContainer( stream );
                     
                     // Decode the AP-REQ PDU
                     try
@@ -177,8 +172,7 @@ public final class KerberosMessageGramma
                     break;
 
                 case KerberosConstants.AP_REP_TAG :
-                    ApRepContainer apRepContainer = new ApRepContainer();
-                    apRepContainer.setStream( stream );
+                    ApRepContainer apRepContainer = new ApRepContainer( stream );
                     
                     // Decode the AP-REP PDU
                     try
@@ -195,8 +189,7 @@ public final class KerberosMessageGramma
                     break;
 
                 case KerberosConstants.KRB_SAFE_TAG :
-                    KrbSafeContainer krbSafeContainer = new KrbSafeContainer();
-                    krbSafeContainer.setStream( stream );
+                    KrbSafeContainer krbSafeContainer = new KrbSafeContainer( stream );
                     
                     // Decode the KRB-SAFE PDU
                     try
@@ -213,8 +206,7 @@ public final class KerberosMessageGramma
                     break;
 
                 case KerberosConstants.KRB_PRIV_TAG :
-                    KrbPrivContainer krbPrivContainer = new KrbPrivContainer();
-                    krbPrivContainer.setStream( stream );
+                    KrbPrivContainer krbPrivContainer = new KrbPrivContainer( stream );
                     
                     // Decode the KRB-PRIV PDU
                     try
@@ -231,8 +223,7 @@ public final class KerberosMessageGramma
                     break;
 
                 case KerberosConstants.KRB_CRED_TAG :
-                    KrbCredContainer krbCredContainer = new KrbCredContainer();
-                    krbCredContainer.setStream( stream );
+                    KrbCredContainer krbCredContainer = new KrbCredContainer( stream );
                     
                     // Decode the KRB-CRED PDU
                     try
@@ -249,8 +240,7 @@ public final class KerberosMessageGramma
                     break;
 
                 case KerberosConstants.KRB_ERROR_TAG :
-                    KrbErrorContainer krbErrorContainer = new KrbErrorContainer();
-                    krbErrorContainer.setStream( stream );
+                    KrbErrorContainer krbErrorContainer = new KrbErrorContainer( stream );
                     
                     // Decode the KRB-ERROR PDU
                     try

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/apRep/ApRepContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/apRep/ApRepContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/apRep/ApRepContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/apRep/ApRepContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.apRep;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.messages.ApRep;
 
@@ -35,10 +37,11 @@ public class ApRepContainer extends Abst
 
     /**
      * Creates a new ApRepContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public ApRepContainer()
+    public ApRepContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = ApRepGrammar.getInstance();
         setTransition( ApRepStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/apReq/ApReqContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/apReq/ApReqContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/apReq/ApReqContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/apReq/ApReqContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.apReq;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.messages.ApReq;
 
@@ -35,10 +37,11 @@ public class ApReqContainer extends Abst
 
     /**
      * Creates a new ApReqContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public ApReqContainer()
+    public ApReqContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = ApReqGrammar.getInstance();
         setTransition( ApReqStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/apReq/actions/StoreTicket.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/apReq/actions/StoreTicket.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/apReq/actions/StoreTicket.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/apReq/actions/StoreTicket.java Mon Dec  6 17:43:13 2010
@@ -77,8 +77,7 @@ public class StoreTicket extends Grammar
         // Now, let's decode the Ticket
         Asn1Decoder ticketDecoder = new Asn1Decoder();
         
-        TicketContainer ticketContainer = new TicketContainer();
-        ticketContainer.setStream( container.getStream() );
+        TicketContainer ticketContainer = new TicketContainer( container.getStream() );
 
         // Decode the Ticket PDU
         try

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asRep/AsRepContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asRep/AsRepContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asRep/AsRepContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asRep/AsRepContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.asRep;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.kerberos.codec.kdcRep.KdcRepContainer;
 import org.apache.directory.shared.kerberos.messages.AsRep;
 
@@ -35,10 +37,11 @@ public class AsRepContainer extends KdcR
 
     /**
      * Creates a new AsRepContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public AsRepContainer()
+    public AsRepContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = AsRepGrammar.getInstance();
         setTransition( AsRepStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asRep/actions/StoreKdcRep.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asRep/actions/StoreKdcRep.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asRep/actions/StoreKdcRep.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asRep/actions/StoreKdcRep.java Mon Dec  6 17:43:13 2010
@@ -78,8 +78,7 @@ public class StoreKdcRep extends Grammar
         // Now, let's decode the KDC-REP
         Asn1Decoder kdcRepDecoder = new Asn1Decoder();
         
-        KdcRepContainer kdcRepContainer = new KdcRepContainer();
-        kdcRepContainer.setStream( container.getStream() );
+        KdcRepContainer kdcRepContainer = new KdcRepContainer( container.getStream() );
         
         // Store the created AS-REP object into the KDC-REP container
         AsRep asRep = new AsRep();

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asReq/AsReqContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asReq/AsReqContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asReq/AsReqContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asReq/AsReqContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.asReq;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.kerberos.codec.kdcReq.KdcReqContainer;
 import org.apache.directory.shared.kerberos.messages.AsReq;
 
@@ -35,10 +37,11 @@ public class AsReqContainer extends KdcR
 
     /**
      * Creates a new AsReqContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public AsReqContainer()
+    public AsReqContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = AsReqGrammar.getInstance();
         setTransition( AsReqStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asReq/actions/StoreKdcReq.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asReq/actions/StoreKdcReq.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asReq/actions/StoreKdcReq.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/asReq/actions/StoreKdcReq.java Mon Dec  6 17:43:13 2010
@@ -78,8 +78,7 @@ public class StoreKdcReq extends Grammar
         // Now, let's decode the KDC-REQ
         Asn1Decoder kdcReqDecoder = new Asn1Decoder();
         
-        KdcReqContainer kdcReqContainer = new KdcReqContainer();
-        kdcReqContainer.setStream( container.getStream() );
+        KdcReqContainer kdcReqContainer = new KdcReqContainer( container.getStream() );
         
         // Store the created AS-REQ object into the KDC-REQ container
         AsReq asReq = new AsReq();

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/authenticator/AuthenticatorContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/authenticator/AuthenticatorContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/authenticator/AuthenticatorContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/authenticator/AuthenticatorContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.authenticator;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.messages.Authenticator;
 
@@ -35,10 +37,11 @@ public class AuthenticatorContainer exte
     
     /**
      * Creates a new AuthenticatorContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public AuthenticatorContainer()
+    public AuthenticatorContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = AuthenticatorGrammar.getInstance();
         setTransition( AuthenticatorStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encApRepPart/EncApRepPartContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encApRepPart/EncApRepPartContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encApRepPart/EncApRepPartContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encApRepPart/EncApRepPartContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.encApRepPart;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.messages.EncApRepPart;
 
@@ -35,10 +37,11 @@ public class EncApRepPartContainer exten
 
     /**
      * Creates a new EncApRepPartContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public EncApRepPartContainer()
+    public EncApRepPartContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = EncApRepPartGrammar.getInstance();
         setTransition( EncApRepPartStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encAsRepPart/EncAsRepPartContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encAsRepPart/EncAsRepPartContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encAsRepPart/EncAsRepPartContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encAsRepPart/EncAsRepPartContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.encAsRepPart;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.messages.EncAsRepPart;
 
@@ -35,10 +37,11 @@ public class EncAsRepPartContainer exten
 
     /**
      * Creates a new EncAsRepPartContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public EncAsRepPartContainer()
+    public EncAsRepPartContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = EncAsRepPartGrammar.getInstance();
         setTransition( EncAsRepPartStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encAsRepPart/actions/StoreEncAsRepPart.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encAsRepPart/actions/StoreEncAsRepPart.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encAsRepPart/actions/StoreEncAsRepPart.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encAsRepPart/actions/StoreEncAsRepPart.java Mon Dec  6 17:43:13 2010
@@ -77,8 +77,7 @@ public class StoreEncAsRepPart extends G
         // Now, let's decode the EncKdcRepPart
         Asn1Decoder encKdcRepPartDecoder = new Asn1Decoder();
         
-        EncKdcRepPartContainer encKdcRepPartContainer = new EncKdcRepPartContainer();
-        encKdcRepPartContainer.setStream( container.getStream() );
+        EncKdcRepPartContainer encKdcRepPartContainer = new EncKdcRepPartContainer( container.getStream() );
         
         // Decode the EncKdcRepPart PDU
         try

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encKrbCredPart/EncKrbCredPartContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encKrbCredPart/EncKrbCredPartContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encKrbCredPart/EncKrbCredPartContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encKrbCredPart/EncKrbCredPartContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.encKrbCredPart;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.components.EncKrbCredPart;
 
@@ -35,10 +37,11 @@ public class EncKrbCredPartContainer ext
     
     /**
      * Creates a new EncKrbCredPartContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public EncKrbCredPartContainer()
+    public EncKrbCredPartContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = EncKrbCredPartGrammar.getInstance();
         setTransition( EncKrbCredPartStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encKrbPrivPart/EncKrbPrivPartContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encKrbPrivPart/EncKrbPrivPartContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encKrbPrivPart/EncKrbPrivPartContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encKrbPrivPart/EncKrbPrivPartContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.encKrbPrivPart;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.components.EncKrbPrivPart;
 
@@ -35,10 +37,11 @@ public class EncKrbPrivPartContainer ext
     
     /**
      * Creates a new EncKrbPrivPartContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public EncKrbPrivPartContainer()
+    public EncKrbPrivPartContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = EncKrbPrivPartGrammar.getInstance();
         setTransition( EncKrbPrivPartStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encTgsRepPart/EncTgsRepPartContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encTgsRepPart/EncTgsRepPartContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encTgsRepPart/EncTgsRepPartContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encTgsRepPart/EncTgsRepPartContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.encTgsRepPart;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.messages.EncTgsRepPart;
 
@@ -35,10 +37,11 @@ public class EncTgsRepPartContainer exte
 
     /**
      * Creates a new EncTgsRepPartContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public EncTgsRepPartContainer()
+    public EncTgsRepPartContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = EncTgsRepPartGrammar.getInstance();
         setTransition( EncTgsRepPartStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encTgsRepPart/actions/StoreEncTgsRepPart.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encTgsRepPart/actions/StoreEncTgsRepPart.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encTgsRepPart/actions/StoreEncTgsRepPart.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encTgsRepPart/actions/StoreEncTgsRepPart.java Mon Dec  6 17:43:13 2010
@@ -77,8 +77,7 @@ public class StoreEncTgsRepPart extends 
         // Now, let's decode the EncKdcRepPart
         Asn1Decoder encKdcRepPartDecoder = new Asn1Decoder();
         
-        EncKdcRepPartContainer encKdcRepPartContainer = new EncKdcRepPartContainer();
-        encKdcRepPartContainer.setStream( container.getStream() );
+        EncKdcRepPartContainer encKdcRepPartContainer = new EncKdcRepPartContainer( container.getStream() );
         
         // Decode the EncKdcRepPart PDU
         try

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encTicketPart/EncTicketPartContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encTicketPart/EncTicketPartContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encTicketPart/EncTicketPartContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encTicketPart/EncTicketPartContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.encTicketPart;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.components.EncTicketPart;
 
@@ -35,10 +37,11 @@ public class EncTicketPartContainer exte
 
     /**
      * Creates a new EncTicketPartContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public EncTicketPartContainer()
+    public EncTicketPartContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = EncTicketPartGrammar.getInstance();
         setTransition( EncTicketPartStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcRep/KdcRepContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcRep/KdcRepContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcRep/KdcRepContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcRep/KdcRepContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.kdcRep;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.components.KdcRep;
 
@@ -35,10 +37,11 @@ public class KdcRepContainer extends Abs
     
     /**
      * Creates a new KdcReqContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public KdcRepContainer()
+    public KdcRepContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = KdcRepGrammar.getInstance();
         setTransition( KdcRepStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcRep/actions/StoreTicket.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcRep/actions/StoreTicket.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcRep/actions/StoreTicket.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcRep/actions/StoreTicket.java Mon Dec  6 17:43:13 2010
@@ -77,8 +77,7 @@ public class StoreTicket extends Grammar
         // Now, let's decode the Ticket
         Asn1Decoder ticketDecoder = new Asn1Decoder();
         
-        TicketContainer ticketContainer = new TicketContainer();
-        ticketContainer.setStream( container.getStream() );
+        TicketContainer ticketContainer = new TicketContainer( container.getStream() );
 
         // Decode the Ticket PDU
         try

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReq/KdcReqContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReq/KdcReqContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReq/KdcReqContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReq/KdcReqContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.kdcReq;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.components.KdcReq;
 
@@ -35,10 +37,11 @@ public class KdcReqContainer extends Abs
     
     /**
      * Creates a new KdcReqContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public KdcReqContainer()
+    public KdcReqContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = KdcReqGrammar.getInstance();
         setTransition( KdcReqStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReq/actions/StoreKdcReqBody.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReq/actions/StoreKdcReqBody.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReq/actions/StoreKdcReqBody.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReq/actions/StoreKdcReqBody.java Mon Dec  6 17:43:13 2010
@@ -78,8 +78,7 @@ public class StoreKdcReqBody extends Gra
         // Now, let's decode the KDC-REQ-BODY
         Asn1Decoder kdcReqBodyDecoder = new Asn1Decoder();
         
-        KdcReqBodyContainer kdcReqBodyContainer = new KdcReqBodyContainer();
-        kdcReqBodyContainer.setStream( container.getStream() );
+        KdcReqBodyContainer kdcReqBodyContainer = new KdcReqBodyContainer( container.getStream() );
 
         // Decode the KDC-REQ-BODY PDU
         try

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/KdcReqBodyContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/KdcReqBodyContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/KdcReqBodyContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/KdcReqBodyContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.components.KdcReqBody;
 
@@ -36,9 +38,9 @@ public class KdcReqBodyContainer extends
     /**
      * Creates a new KdcReqBodyContainer object.
      */
-    public KdcReqBodyContainer()
+    public KdcReqBodyContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = KdcReqBodyGrammar.getInstance();
         setTransition( KdcReqBodyStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddTicket.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddTicket.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddTicket.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddTicket.java Mon Dec  6 17:43:13 2010
@@ -77,8 +77,7 @@ public class AddTicket extends GrammarAc
         // Now, let's decode the Ticket
         Asn1Decoder ticketDecoder = new Asn1Decoder();
         
-        TicketContainer ticketContainer = new TicketContainer();
-        ticketContainer.setStream( container.getStream() );
+        TicketContainer ticketContainer = new TicketContainer( container.getStream() );
 
         // We have to move back to the Ticket tag
         container.rewind();

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbCred/KrbCredContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbCred/KrbCredContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbCred/KrbCredContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbCred/KrbCredContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.krbCred;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.messages.KrbCred;
 
@@ -35,10 +37,11 @@ public class KrbCredContainer extends Ab
     
     /**
      * Creates a new KrbErrorContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public KrbCredContainer()
+    public KrbCredContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = KrbCredGrammar.getInstance();
         setTransition( KrbCredStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbCred/actions/StoreTickets.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbCred/actions/StoreTickets.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbCred/actions/StoreTickets.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbCred/actions/StoreTickets.java Mon Dec  6 17:43:13 2010
@@ -70,8 +70,7 @@ public class StoreTickets extends Gramma
         Asn1Decoder decoder = new Asn1Decoder();
 
         // Ticket container
-        TicketContainer ticketContainer = new TicketContainer();
-        ticketContainer.setStream( container.getStream() );
+        TicketContainer ticketContainer = new TicketContainer( container.getStream() );
 
         container.rewind();
         

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbError/KrbErrorContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbError/KrbErrorContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbError/KrbErrorContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbError/KrbErrorContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.krbError;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.messages.KrbError;
 
@@ -35,10 +37,11 @@ public class KrbErrorContainer extends A
     
     /**
      * Creates a new KrbErrorContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public KrbErrorContainer()
+    public KrbErrorContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = KrbErrorGrammar.getInstance();
         setTransition( KrbErrorStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbPriv/KrbPrivContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbPriv/KrbPrivContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbPriv/KrbPrivContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbPriv/KrbPrivContainer.java Mon Dec  6 17:43:13 2010
@@ -20,6 +20,8 @@
 package org.apache.directory.shared.kerberos.codec.krbPriv;
 
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.messages.KrbPriv;
 
@@ -37,10 +39,11 @@ public class KrbPrivContainer extends Ab
 
     /**
      * Creates a new KrbPrivContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public KrbPrivContainer()
+    public KrbPrivContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = KrbPrivGrammar.getInstance();
         setTransition( KrbPrivStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbSafe/KrbSafeContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbSafe/KrbSafeContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbSafe/KrbSafeContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbSafe/KrbSafeContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.krbSafe;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.messages.KrbSafe;
 
@@ -35,10 +37,11 @@ public class KrbSafeContainer extends Ab
     
     /**
      * Creates a new KrbSafeContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public KrbSafeContainer()
+    public KrbSafeContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = KrbSafeGrammar.getInstance();
         setTransition( KrbSafeStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsRep/TgsRepContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsRep/TgsRepContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsRep/TgsRepContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsRep/TgsRepContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.tgsRep;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.kerberos.codec.kdcRep.KdcRepContainer;
 import org.apache.directory.shared.kerberos.messages.TgsRep;
 
@@ -35,10 +37,11 @@ public class TgsRepContainer extends Kdc
 
     /**
      * Creates a new TgsRepContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public TgsRepContainer()
+    public TgsRepContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = TgsRepGrammar.getInstance();
         setTransition( TgsRepStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsRep/actions/StoreKdcRep.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsRep/actions/StoreKdcRep.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsRep/actions/StoreKdcRep.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsRep/actions/StoreKdcRep.java Mon Dec  6 17:43:13 2010
@@ -78,8 +78,7 @@ public class StoreKdcRep extends Grammar
         // Now, let's decode the KDC-REP
         Asn1Decoder kdcRepDecoder = new Asn1Decoder();
         
-        KdcRepContainer kdcRepContainer = new KdcRepContainer();
-        kdcRepContainer.setStream( container.getStream() );
+        KdcRepContainer kdcRepContainer = new KdcRepContainer( container.getStream() );
         
         // Store the created TGS-REP object into the KDC-REP container
         TgsRep tgsRep = new TgsRep();

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsReq/TgsReqContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsReq/TgsReqContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsReq/TgsReqContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsReq/TgsReqContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.tgsReq;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.kerberos.codec.kdcReq.KdcReqContainer;
 import org.apache.directory.shared.kerberos.messages.TgsReq;
 
@@ -35,10 +37,11 @@ public class TgsReqContainer extends Kdc
 
     /**
      * Creates a new TgsReqContainer object.
+     * @param stream The stream containing the data to decode
      */
-    public TgsReqContainer()
+    public TgsReqContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[1];
         this.grammar = TgsReqGrammar.getInstance();
         setTransition( TgsReqStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsReq/actions/StoreKdcReq.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsReq/actions/StoreKdcReq.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsReq/actions/StoreKdcReq.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/tgsReq/actions/StoreKdcReq.java Mon Dec  6 17:43:13 2010
@@ -78,8 +78,7 @@ public class StoreKdcReq extends Grammar
         // Now, let's decode the KDC-REQ
         Asn1Decoder kdcReqDecoder = new Asn1Decoder();
         
-        KdcReqContainer kdcReqContainer = new KdcReqContainer();
-        kdcReqContainer.setStream( container.getStream() );
+        KdcReqContainer kdcReqContainer = new KdcReqContainer( container.getStream() );
         
         // Store the created TGS-REQ object into the KDC-REQ container
         TgsReq tgsReq = new TgsReq();

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/ticket/TicketContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/ticket/TicketContainer.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/ticket/TicketContainer.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/ticket/TicketContainer.java Mon Dec  6 17:43:13 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.kerberos.codec.ticket;
 
+import java.nio.ByteBuffer;
+
 import org.apache.directory.shared.asn1.ber.AbstractContainer;
 import org.apache.directory.shared.kerberos.messages.Ticket;
 
@@ -38,10 +40,11 @@ public class TicketContainer extends Abs
     /**
      * Creates a new TicketContainer object. We will store one grammars,
      * it's enough ...
+     * @param stream The stream containing the data to decode
      */
-    public TicketContainer()
+    public TicketContainer( ByteBuffer stream )
     {
-        super();
+        super( stream );
         this.stateStack = new int[10];
         this.grammar = TicketGrammar.getInstance();
         setTransition( TicketStatesEnum.START_STATE );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/AuthenticatorDecoderTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/AuthenticatorDecoderTest.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/AuthenticatorDecoderTest.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/AuthenticatorDecoderTest.java Mon Dec  6 17:43:13 2010
@@ -111,8 +111,7 @@ public class AuthenticatorDecoderTest
         stream.flip();
 
         // Allocate a Authenticator Container
-        Asn1Container authenticatorContainer = new AuthenticatorContainer();
-        authenticatorContainer.setStream( stream );
+        Asn1Container authenticatorContainer = new AuthenticatorContainer( stream );
         
         // Decode the Authenticator PDU
         try
@@ -166,7 +165,7 @@ public class AuthenticatorDecoderTest
         stream.flip();
 
         // Allocate a Authenticator Container
-        Asn1Container authenticatorContainer = new AuthenticatorContainer();
+        Asn1Container authenticatorContainer = new AuthenticatorContainer( stream );
 
         // Decode the Authenticator PDU
         kerberosDecoder.decode( stream, authenticatorContainer );
@@ -193,7 +192,7 @@ public class AuthenticatorDecoderTest
         stream.flip();
 
         // Allocate a Authenticator Container
-        Asn1Container authenticatorContainer = new AuthenticatorContainer();
+        Asn1Container authenticatorContainer = new AuthenticatorContainer( stream );
 
         // Decode the Authenticator PDU
         kerberosDecoder.decode( stream, authenticatorContainer );
@@ -221,7 +220,7 @@ public class AuthenticatorDecoderTest
         stream.flip();
 
         // Allocate a Authenticator Container
-        Asn1Container authenticatorContainer = new AuthenticatorContainer();
+        Asn1Container authenticatorContainer = new AuthenticatorContainer( stream );
 
         // Decode the Authenticator PDU
         kerberosDecoder.decode( stream, authenticatorContainer );
@@ -250,7 +249,7 @@ public class AuthenticatorDecoderTest
         stream.flip();
 
         // Allocate a Authenticator Container
-        Asn1Container authenticatorContainer = new AuthenticatorContainer();
+        Asn1Container authenticatorContainer = new AuthenticatorContainer( stream );
 
         // Decode the Authenticator PDU
         kerberosDecoder.decode( stream, authenticatorContainer );
@@ -379,7 +378,7 @@ public class AuthenticatorDecoderTest
         stream.flip();
 
         // Allocate a Authenticator Container
-        Asn1Container authenticatorContainer = new AuthenticatorContainer();
+        Asn1Container authenticatorContainer = new AuthenticatorContainer( stream );
 
         // Decode the Authenticator PDU
         kerberosDecoder.decode( stream, authenticatorContainer );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncApRepPartDecoderTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncApRepPartDecoderTest.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncApRepPartDecoderTest.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncApRepPartDecoderTest.java Mon Dec  6 17:43:13 2010
@@ -80,8 +80,7 @@ public class EncApRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncApRepPart Container
-        Asn1Container encApRepPartContainer = new EncApRepPartContainer();
-        encApRepPartContainer.setStream( stream );
+        Asn1Container encApRepPartContainer = new EncApRepPartContainer( stream );
         
         // Decode the EncApRepPart PDU
         try
@@ -135,7 +134,7 @@ public class EncApRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncApRepPart Container
-        Asn1Container encApRepPartContainer = new EncApRepPartContainer();
+        Asn1Container encApRepPartContainer = new EncApRepPartContainer( stream );
 
         // Decode the EncApRepPart PDU
         kerberosDecoder.decode( stream, encApRepPartContainer );
@@ -162,7 +161,7 @@ public class EncApRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncApRepPart Container
-        Asn1Container encApRepPartContainer = new EncApRepPartContainer();
+        Asn1Container encApRepPartContainer = new EncApRepPartContainer( stream );
 
         // Decode the EncApRepPart PDU
         kerberosDecoder.decode( stream, encApRepPartContainer );
@@ -190,7 +189,7 @@ public class EncApRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncApRepPart Container
-        Asn1Container encApRepPartContainer = new EncApRepPartContainer();
+        Asn1Container encApRepPartContainer = new EncApRepPartContainer( stream );
 
         // Decode the EncApRepPart PDU
         kerberosDecoder.decode( stream, encApRepPartContainer );
@@ -228,7 +227,7 @@ public class EncApRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncApRepPart Container
-        Asn1Container encApRepPartContainer = new EncApRepPartContainer();
+        Asn1Container encApRepPartContainer = new EncApRepPartContainer( stream );
 
         // Decode the EncApRepPart PDU
         kerberosDecoder.decode( stream, encApRepPartContainer );
@@ -267,7 +266,7 @@ public class EncApRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncApRepPart Container
-        Asn1Container encApRepPartContainer = new EncApRepPartContainer();
+        Asn1Container encApRepPartContainer = new EncApRepPartContainer( stream );
 
         // Decode the EncApRepPart PDU
         kerberosDecoder.decode( stream, encApRepPartContainer );
@@ -303,8 +302,7 @@ public class EncApRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncApRepPart Container
-        Asn1Container encApRepPartContainer = new EncApRepPartContainer();
-        encApRepPartContainer.setStream( stream );
+        Asn1Container encApRepPartContainer = new EncApRepPartContainer( stream );
         
         // Decode the EncApRepPart PDU
         try
@@ -373,8 +371,7 @@ public class EncApRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncApRepPart Container
-        Asn1Container encApRepPartContainer = new EncApRepPartContainer();
-        encApRepPartContainer.setStream( stream );
+        Asn1Container encApRepPartContainer = new EncApRepPartContainer( stream );
         
         // Decode the EncApRepPart PDU
         try
@@ -437,8 +434,7 @@ public class EncApRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncApRepPart Container
-        Asn1Container encApRepPartContainer = new EncApRepPartContainer();
-        encApRepPartContainer.setStream( stream );
+        Asn1Container encApRepPartContainer = new EncApRepPartContainer( stream );
         
         // Decode the EncApRepPart PDU
         try

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncAsRepPartDecoderTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncAsRepPartDecoderTest.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncAsRepPartDecoderTest.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncAsRepPartDecoderTest.java Mon Dec  6 17:43:13 2010
@@ -105,8 +105,7 @@ public class EncAsRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncAsRepPart Container
-        EncAsRepPartContainer encAsRepPartContainer = new EncAsRepPartContainer();
-        encAsRepPartContainer.setStream( stream );
+        EncAsRepPartContainer encAsRepPartContainer = new EncAsRepPartContainer( stream );
         
         // Decode the EncAsRepPart PDU
         try
@@ -159,7 +158,7 @@ public class EncAsRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncAsRepPart Container
-        Asn1Container encAsRepPartContainer = new EncAsRepPartContainer();
+        Asn1Container encAsRepPartContainer = new EncAsRepPartContainer( stream );
 
         // Decode the EncAsRepPart PDU
         kerberosDecoder.decode( stream, encAsRepPartContainer );
@@ -186,8 +185,7 @@ public class EncAsRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncAsRepPart Container
-        Asn1Container encAsRepPartContainer = new EncAsRepPartContainer();
-        encAsRepPartContainer.setStream( stream );
+        Asn1Container encAsRepPartContainer = new EncAsRepPartContainer( stream );
 
         // Decode the EncAsRepPart PDU
         kerberosDecoder.decode( stream, encAsRepPartContainer );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKdcRepPartDecoderTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKdcRepPartDecoderTest.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKdcRepPartDecoderTest.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKdcRepPartDecoderTest.java Mon Dec  6 17:43:13 2010
@@ -60,7 +60,7 @@ public class EncKdcRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncKdcRepPart Container
-        Asn1Container encKdcRepPartContainer = new EncKdcRepPartContainer();
+        Asn1Container encKdcRepPartContainer = new EncKdcRepPartContainer( stream );
 
         // Decode the EncKdcRepPart PDU
         decoder.decode( stream, encKdcRepPartContainer );
@@ -88,7 +88,7 @@ public class EncKdcRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncKdcRepPart Container
-        Asn1Container encKdcRepPartContainer = new EncKdcRepPartContainer();
+        Asn1Container encKdcRepPartContainer = new EncKdcRepPartContainer( stream );
 
         // Decode the EncKdcRepPart PDU
         decoder.decode( stream, encKdcRepPartContainer );
@@ -116,8 +116,7 @@ public class EncKdcRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncKdcRepPart Container
-        Asn1Container encKdcRepPartContainer = new EncKdcRepPartContainer();
-        encKdcRepPartContainer.setStream( stream );
+        Asn1Container encKdcRepPartContainer = new EncKdcRepPartContainer( stream );
 
         // Decode the EncKdcRepPart PDU
         decoder.decode( stream, encKdcRepPartContainer );
@@ -152,8 +151,7 @@ public class EncKdcRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncKdcRepPart Container
-        Asn1Container encKdcRepPartContainer = new EncKdcRepPartContainer();
-        encKdcRepPartContainer.setStream( stream );
+        Asn1Container encKdcRepPartContainer = new EncKdcRepPartContainer( stream );
 
         // Decode the EncKdcRepPart PDU
         decoder.decode( stream, encKdcRepPartContainer );
@@ -188,8 +186,7 @@ public class EncKdcRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncKdcRepPart Container
-        Asn1Container encKdcRepPartContainer = new EncKdcRepPartContainer();
-        encKdcRepPartContainer.setStream( stream );
+        Asn1Container encKdcRepPartContainer = new EncKdcRepPartContainer( stream );
 
         // Decode the EncKdcRepPart PDU
         decoder.decode( stream, encKdcRepPartContainer );
@@ -238,8 +235,7 @@ public class EncKdcRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncKdcRepPart Container
-        Asn1Container encKdcRepPartContainer = new EncKdcRepPartContainer();
-        encKdcRepPartContainer.setStream( stream );
+        Asn1Container encKdcRepPartContainer = new EncKdcRepPartContainer( stream );
 
         // Decode the EncKdcRepPart PDU
         decoder.decode( stream, encKdcRepPartContainer );
@@ -288,8 +284,7 @@ public class EncKdcRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncKdcRepPart Container
-        Asn1Container encKdcRepPartContainer = new EncKdcRepPartContainer();
-        encKdcRepPartContainer.setStream( stream );
+        Asn1Container encKdcRepPartContainer = new EncKdcRepPartContainer( stream );
 
         // Decode the EncKdcRepPart PDU
         decoder.decode( stream, encKdcRepPartContainer );
@@ -340,8 +335,7 @@ public class EncKdcRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncKdcRepPart Container
-        Asn1Container encKdcRepPartContainer = new EncKdcRepPartContainer();
-        encKdcRepPartContainer.setStream( stream );
+        Asn1Container encKdcRepPartContainer = new EncKdcRepPartContainer( stream );
 
         // Decode the EncKdcRepPart PDU
         decoder.decode( stream, encKdcRepPartContainer );
@@ -410,8 +404,7 @@ public class EncKdcRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncKdcRepPart Container
-        EncKdcRepPartContainer encKdcRepPartContainer = new EncKdcRepPartContainer();
-        encKdcRepPartContainer.setStream( stream );
+        EncKdcRepPartContainer encKdcRepPartContainer = new EncKdcRepPartContainer( stream );
 
         // Decode the EncKdcRepPart PDU
         try

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKrbCredPartDecoderTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKrbCredPartDecoderTest.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKrbCredPartDecoderTest.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKrbCredPartDecoderTest.java Mon Dec  6 17:43:13 2010
@@ -147,8 +147,7 @@ public class EncKrbCredPartDecoderTest
             stream.flip();
 
             Asn1Decoder decoder = new Asn1Decoder();
-            EncKrbCredPartContainer container = new EncKrbCredPartContainer();
-            container.setStream( stream );
+            EncKrbCredPartContainer container = new EncKrbCredPartContainer( stream );
 
             try
             {
@@ -193,8 +192,7 @@ public class EncKrbCredPartDecoderTest
             stream.flip();
 
             Asn1Decoder decoder = new Asn1Decoder();
-            EncKrbCredPartContainer container = new EncKrbCredPartContainer();
-            container.setStream( stream );
+            EncKrbCredPartContainer container = new EncKrbCredPartContainer( stream );
 
             try
             {

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKrbPrivPartDecoderTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKrbPrivPartDecoderTest.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKrbPrivPartDecoderTest.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKrbPrivPartDecoderTest.java Mon Dec  6 17:43:13 2010
@@ -81,8 +81,7 @@ public class EncKrbPrivPartDecoderTest
         String decoded = StringTools.dumpBytes( stream.array() );
         stream.flip();
         
-        EncKrbPrivPartContainer container = new EncKrbPrivPartContainer();
-        container.setStream( stream );
+        EncKrbPrivPartContainer container = new EncKrbPrivPartContainer( stream );
         
         try
         {
@@ -160,8 +159,7 @@ public class EncKrbPrivPartDecoderTest
         String decoded = StringTools.dumpBytes( stream.array() );
         stream.flip();
         
-        EncKrbPrivPartContainer container = new EncKrbPrivPartContainer();
-        container.setStream( stream );
+        EncKrbPrivPartContainer container = new EncKrbPrivPartContainer( stream );
         
         try
         {
@@ -236,8 +234,7 @@ public class EncKrbPrivPartDecoderTest
         String decoded = StringTools.dumpBytes( stream.array() );
         stream.flip();
         
-        EncKrbPrivPartContainer container = new EncKrbPrivPartContainer();
-        container.setStream( stream );
+        EncKrbPrivPartContainer container = new EncKrbPrivPartContainer( stream );
         
         try
         {
@@ -310,8 +307,7 @@ public class EncKrbPrivPartDecoderTest
         String decoded = StringTools.dumpBytes( stream.array() );
         stream.flip();
         
-        EncKrbPrivPartContainer container = new EncKrbPrivPartContainer();
-        container.setStream( stream );
+        EncKrbPrivPartContainer container = new EncKrbPrivPartContainer( stream );
         
         try
         {
@@ -389,8 +385,7 @@ public class EncKrbPrivPartDecoderTest
         String decoded = StringTools.dumpBytes( stream.array() );
         stream.flip();
         
-        EncKrbPrivPartContainer container = new EncKrbPrivPartContainer();
-        container.setStream( stream );
+        EncKrbPrivPartContainer container = new EncKrbPrivPartContainer( stream );
         
         try
         {
@@ -459,8 +454,7 @@ public class EncKrbPrivPartDecoderTest
         String decoded = StringTools.dumpBytes( stream.array() );
         stream.flip();
         
-        EncKrbPrivPartContainer container = new EncKrbPrivPartContainer();
-        container.setStream( stream );
+        EncKrbPrivPartContainer container = new EncKrbPrivPartContainer( stream );
         
         try
         {

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncTgsRepPartDecoderTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncTgsRepPartDecoderTest.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncTgsRepPartDecoderTest.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncTgsRepPartDecoderTest.java Mon Dec  6 17:43:13 2010
@@ -105,8 +105,7 @@ public class EncTgsRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncAsRepPart Container
-        EncTgsRepPartContainer encTgsRepPartContainer = new EncTgsRepPartContainer();
-        encTgsRepPartContainer.setStream( stream );
+        EncTgsRepPartContainer encTgsRepPartContainer = new EncTgsRepPartContainer( stream );
         
         // Decode the EncTgsRepPart PDU
         try
@@ -159,7 +158,7 @@ public class EncTgsRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncTgsRepPart Container
-        Asn1Container encTgsRepPartContainer = new EncTgsRepPartContainer();
+        Asn1Container encTgsRepPartContainer = new EncTgsRepPartContainer( stream );
 
         // Decode the EncTgsRepPart PDU
         kerberosDecoder.decode( stream, encTgsRepPartContainer );
@@ -186,8 +185,7 @@ public class EncTgsRepPartDecoderTest
         stream.flip();
 
         // Allocate a EncTgsRepPart Container
-        Asn1Container encTgsRepPartContainer = new EncTgsRepPartContainer();
-        encTgsRepPartContainer.setStream( stream );
+        Asn1Container encTgsRepPartContainer = new EncTgsRepPartContainer( stream );
 
         // Decode the EncTgsRepPart PDU
         kerberosDecoder.decode( stream, encTgsRepPartContainer );

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncTicketPartDecoderTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncTicketPartDecoderTest.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncTicketPartDecoderTest.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncTicketPartDecoderTest.java Mon Dec  6 17:43:13 2010
@@ -178,8 +178,7 @@ public class EncTicketPartDecoderTest
         stream.flip();
 
         Asn1Decoder decoder = new Asn1Decoder();
-        EncTicketPartContainer container = new EncTicketPartContainer();
-        container.setStream( stream );
+        EncTicketPartContainer container = new EncTicketPartContainer( stream );
 
         try
         {

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/KdcReqBodyDecoderTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/KdcReqBodyDecoderTest.java?rev=1042743&r1=1042742&r2=1042743&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/KdcReqBodyDecoderTest.java (original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/KdcReqBodyDecoderTest.java Mon Dec  6 17:43:13 2010
@@ -181,8 +181,7 @@ public class KdcReqBodyDecoderTest
         stream.flip();
 
         // Allocate a KdcReqBody Container
-        Asn1Container kdcReqBodyContainer = new KdcReqBodyContainer();
-        kdcReqBodyContainer.setStream( stream );
+        Asn1Container kdcReqBodyContainer = new KdcReqBodyContainer( stream );
         
         // Decode the KdcReqBody PDU
         try
@@ -273,7 +272,7 @@ public class KdcReqBodyDecoderTest
         stream.flip();
 
         // Allocate a KDC-REQ-BODY Container
-        Asn1Container kdcReqBodyContainer = new KdcReqBodyContainer();
+        Asn1Container kdcReqBodyContainer = new KdcReqBodyContainer( stream );
 
         // Decode the KDC-REQ-BODY PDU
         kerberosDecoder.decode( stream, kdcReqBodyContainer );
@@ -300,7 +299,7 @@ public class KdcReqBodyDecoderTest
         stream.flip();
 
         // Allocate a KDC-REQ-BODY Container
-        Asn1Container kdcReqBodyContainer = new KdcReqBodyContainer();
+        Asn1Container kdcReqBodyContainer = new KdcReqBodyContainer( stream );
 
         // Decode the KDC-REQ-BODY PDU
         kerberosDecoder.decode( stream, kdcReqBodyContainer );
@@ -328,7 +327,7 @@ public class KdcReqBodyDecoderTest
         stream.flip();
 
         // Allocate a KDC-REQ-BODY Container
-        Asn1Container kdcReqBodyContainer = new KdcReqBodyContainer();
+        Asn1Container kdcReqBodyContainer = new KdcReqBodyContainer( stream );
 
         // Decode the KDC-REQ-BODY PDU
         kerberosDecoder.decode( stream, kdcReqBodyContainer );
@@ -457,7 +456,7 @@ public class KdcReqBodyDecoderTest
         stream.flip();
 
         // Allocate a KDC-REQ-BODY Container
-        Asn1Container kdcReqBodyContainer = new KdcReqBodyContainer();
+        Asn1Container kdcReqBodyContainer = new KdcReqBodyContainer( stream );
 
         // Decode the KDC-REQ-BODY PDU
         kerberosDecoder.decode( stream, kdcReqBodyContainer );
@@ -502,8 +501,7 @@ public class KdcReqBodyDecoderTest
         stream.flip();
 
         // Allocate a KdcReqBody Container
-        KdcReqBodyContainer kdcReqBodyContainer = new KdcReqBodyContainer();
-        kdcReqBodyContainer.setStream( stream );
+        KdcReqBodyContainer kdcReqBodyContainer = new KdcReqBodyContainer( stream );
         
         // Decode the KdcReqBody PDU
         try



Mime
View raw message