directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1068124 [12/19] - in /directory/apacheds/branches/m1/kerberos-codec/src: main/java/org/apache/directory/server/kerberos/shared/crypto/checksum/ main/java/org/apache/directory/server/kerberos/shared/crypto/encryption/ main/java/org/apache/d...
Date Mon, 07 Feb 2011 20:49:13 GMT
Modified: directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/KdcReqBodyGrammar.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/KdcReqBodyGrammar.java?rev=1068124&r1=1068123&r2=1068124&view=diff
==============================================================================
--- directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/KdcReqBodyGrammar.java (original)
+++ directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/KdcReqBodyGrammar.java Mon Feb  7 20:49:04 2011
@@ -6,16 +6,16 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody;
 
@@ -48,10 +48,10 @@ import org.slf4j.LoggerFactory;
  * This class implements the KdcReqBody structure. All the actions are declared
  * in this class. As it is a singleton, these declaration are only done once. If
  * an action is to be added or modified, this is where the work is to be done !
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public final class KdcReqBodyGrammar extends AbstractGrammar
+public final class KdcReqBodyGrammar extends AbstractGrammar<KdcReqBodyContainer>
 {
     /** The logger */
     static final Logger LOG = LoggerFactory.getLogger( KdcReqBodyGrammar.class );
@@ -60,107 +60,132 @@ public final class KdcReqBodyGrammar ext
     static final boolean IS_DEBUG = LOG.isDebugEnabled();
 
     /** The instance of grammar. KdcReqBodyGrammar is a singleton */
-    private static Grammar instance = new KdcReqBodyGrammar();
+    private static Grammar<KdcReqBodyContainer> instance = new KdcReqBodyGrammar();
 
 
     /**
      * Creates a new KdcReqBodyGrammar object.
      */
+    @SuppressWarnings("unchecked")
     private KdcReqBodyGrammar()
     {
         setName( KdcReqBodyGrammar.class.getName() );
 
         // Create the transitions table
-        super.transitions = new GrammarTransition[KdcReqBodyStatesEnum.LAST_KDC_REQ_BODY_STATE.ordinal()][256];
+        super.transitions =
+            new GrammarTransition[KdcReqBodyStatesEnum.LAST_KDC_REQ_BODY_STATE.ordinal()][256];
 
         // ============================================================================================
-        // KdcReqBody 
+        // KdcReqBody
         // ============================================================================================
         // --------------------------------------------------------------------------------------------
         // Transition from KdcReqBody init to KdcReqBody SEQ
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
-        super.transitions[KdcReqBodyStatesEnum.START_STATE.ordinal()][UniversalTag.SEQUENCE.getValue()] = new GrammarTransition(
-            KdcReqBodyStatesEnum.START_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_KDC_OPTIONS_TAG_STATE, UniversalTag.SEQUENCE.getValue(),
-            new KdcReqBodyInit() );
-        
+        super.transitions[KdcReqBodyStatesEnum.START_STATE.ordinal()][UniversalTag.SEQUENCE.getValue()] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.START_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_KDC_OPTIONS_TAG_STATE,
+                UniversalTag.SEQUENCE.getValue(),
+                new KdcReqBodyInit() );
+
         // --------------------------------------------------------------------------------------------
         // Transition from KdcReqBody SEQ to kdc-options tag
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         kdc-options             [0]
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_KDC_OPTIONS_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_KDC_OPTIONS_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_KDC_OPTIONS_TAG_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_KDC_OPTIONS_STATE, KerberosConstants.KDC_REQ_BODY_KDC_OPTIONS_TAG,
-            new CheckNotNullLength() );
-        
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_KDC_OPTIONS_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_KDC_OPTIONS_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_KDC_OPTIONS_TAG_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_KDC_OPTIONS_STATE, KerberosConstants.KDC_REQ_BODY_KDC_OPTIONS_TAG,
+                new CheckNotNullLength<KdcReqBodyContainer>() );
+
         // --------------------------------------------------------------------------------------------
         // Transition from kdc-options tag to kdc-options value
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         kdc-options             [0] KDCOptions
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_KDC_OPTIONS_STATE.ordinal()][UniversalTag.BIT_STRING.getValue()] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_KDC_OPTIONS_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_CNAME_OR_REALM_TAG_STATE, UniversalTag.BIT_STRING.getValue(),
-            new StoreKdcOptions() );
-        
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_KDC_OPTIONS_STATE.ordinal()][UniversalTag.BIT_STRING
+            .getValue()] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_KDC_OPTIONS_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_CNAME_OR_REALM_TAG_STATE, UniversalTag.BIT_STRING.getValue(),
+                new StoreKdcOptions() );
+
         // --------------------------------------------------------------------------------------------
         // Transition from kdc-options value to cname tag
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         cname                   [1]
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_CNAME_OR_REALM_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_CNAME_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_CNAME_OR_REALM_TAG_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_CNAME_STATE, KerberosConstants.KDC_REQ_BODY_CNAME_TAG,
-            new StoreCName() );
-        
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_CNAME_OR_REALM_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_CNAME_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_CNAME_OR_REALM_TAG_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_CNAME_STATE, KerberosConstants.KDC_REQ_BODY_CNAME_TAG,
+                new StoreCName() );
+
         // --------------------------------------------------------------------------------------------
         // Transition from kdc-options value to realm tag (cname is empty)
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         realm                   [2]
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_CNAME_OR_REALM_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_REALM_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_CNAME_OR_REALM_TAG_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_REALM_TAG_STATE, KerberosConstants.KDC_REQ_BODY_REALM_TAG,
-            new CheckNotNullLength() );
-        
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_CNAME_OR_REALM_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_REALM_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_CNAME_OR_REALM_TAG_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_REALM_TAG_STATE, KerberosConstants.KDC_REQ_BODY_REALM_TAG,
+                new CheckNotNullLength<KdcReqBodyContainer>() );
+
         // --------------------------------------------------------------------------------------------
         // Transition from cname tag to realm tag
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         realm                   [2]
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_CNAME_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_REALM_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_CNAME_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_REALM_TAG_STATE, KerberosConstants.KDC_REQ_BODY_REALM_TAG,
-            new CheckNotNullLength() );
-        
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_CNAME_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_REALM_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_CNAME_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_REALM_TAG_STATE,
+                KerberosConstants.KDC_REQ_BODY_REALM_TAG,
+                new CheckNotNullLength<KdcReqBodyContainer>() );
+
         // --------------------------------------------------------------------------------------------
         // Transition from realm tag to realm value
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         realm                   [2] Realm
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_REALM_TAG_STATE.ordinal()][UniversalTag.GENERAL_STRING.getValue()] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_REALM_TAG_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_OR_FROM_OR_TILL_TAG_STATE, UniversalTag.GENERAL_STRING.getValue(),
-            new StoreRealm() );
-        
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_REALM_TAG_STATE.ordinal()][UniversalTag.GENERAL_STRING
+            .getValue()] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_REALM_TAG_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_OR_FROM_OR_TILL_TAG_STATE,
+                UniversalTag.GENERAL_STRING.getValue(),
+                new StoreRealm() );
+
         // --------------------------------------------------------------------------------------------
         // Transition from realm value to sname tag
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         sname                   [3]
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_OR_FROM_OR_TILL_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_SNAME_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_OR_FROM_OR_TILL_TAG_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_STATE, KerberosConstants.KDC_REQ_BODY_SNAME_TAG,
-            new StoreSName() );
-        
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_OR_FROM_OR_TILL_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_SNAME_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_OR_FROM_OR_TILL_TAG_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_STATE, KerberosConstants.KDC_REQ_BODY_SNAME_TAG,
+                new StoreSName() );
+
         // --------------------------------------------------------------------------------------------
         // Transition from realm value to from tag (sname is empty)
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         from                    [4]
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_OR_FROM_OR_TILL_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_FROM_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_OR_FROM_OR_TILL_TAG_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_FROM_STATE, KerberosConstants.KDC_REQ_BODY_FROM_TAG,
-            new CheckNotNullLength() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_OR_FROM_OR_TILL_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_FROM_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_OR_FROM_OR_TILL_TAG_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_FROM_STATE, KerberosConstants.KDC_REQ_BODY_FROM_TAG,
+                new CheckNotNullLength<KdcReqBodyContainer>() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from realm value to till tag (sname and from are empty)
@@ -168,9 +193,11 @@ public final class KdcReqBodyGrammar ext
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         till                    [5]
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_OR_FROM_OR_TILL_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_TILL_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_OR_FROM_OR_TILL_TAG_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_TILL_STATE, KerberosConstants.KDC_REQ_BODY_TILL_TAG,
-            new CheckNotNullLength() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_OR_FROM_OR_TILL_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_TILL_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_OR_FROM_OR_TILL_TAG_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_TILL_STATE, KerberosConstants.KDC_REQ_BODY_TILL_TAG,
+                new CheckNotNullLength<KdcReqBodyContainer>() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from sname tag to from tag
@@ -178,29 +205,39 @@ public final class KdcReqBodyGrammar ext
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         from                    [4]
-       super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_FROM_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_FROM_STATE, KerberosConstants.KDC_REQ_BODY_FROM_TAG,
-            new CheckNotNullLength() );
-        
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_FROM_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_FROM_STATE,
+                KerberosConstants.KDC_REQ_BODY_FROM_TAG,
+                new CheckNotNullLength<KdcReqBodyContainer>() );
+
         // --------------------------------------------------------------------------------------------
         // Transition from sname tag to till tag (from is empty)
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         till                    [5]
-       super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_TILL_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_TILL_STATE, KerberosConstants.KDC_REQ_BODY_TILL_TAG,
-            new CheckNotNullLength() );
-        
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_TILL_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_SNAME_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_TILL_STATE,
+                KerberosConstants.KDC_REQ_BODY_TILL_TAG,
+                new CheckNotNullLength<KdcReqBodyContainer>() );
+
         // --------------------------------------------------------------------------------------------
         // Transition from from tag to from value
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         from                    [4] KerberosTime
-       super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_FROM_STATE.ordinal()][UniversalTag.GENERALIZED_TIME.getValue()] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_FROM_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_TILL_TAG_STATE, UniversalTag.GENERALIZED_TIME.getValue(),
-            new StoreFrom() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_FROM_STATE.ordinal()][UniversalTag.GENERALIZED_TIME
+            .getValue()] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_FROM_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_TILL_TAG_STATE,
+                UniversalTag.GENERALIZED_TIME.getValue(),
+                new StoreFrom() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from till tag to till value
@@ -208,9 +245,12 @@ public final class KdcReqBodyGrammar ext
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         till                    [5]
-       super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_TILL_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_TILL_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_TILL_TAG_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_TILL_STATE, KerberosConstants.KDC_REQ_BODY_TILL_TAG,
-            new CheckNotNullLength() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_TILL_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_TILL_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_TILL_TAG_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_TILL_STATE,
+                KerberosConstants.KDC_REQ_BODY_TILL_TAG,
+                new CheckNotNullLength<KdcReqBodyContainer>() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from till tag to till value
@@ -218,29 +258,36 @@ public final class KdcReqBodyGrammar ext
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         till                    [5] KerberosTime
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_TILL_STATE.ordinal()][UniversalTag.GENERALIZED_TIME.getValue()] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_TILL_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_RTIME_OR_NONCE_TAG_STATE, UniversalTag.GENERALIZED_TIME.getValue(),
-            new StoreTill() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_TILL_STATE.ordinal()][UniversalTag.GENERALIZED_TIME
+            .getValue()] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_TILL_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_RTIME_OR_NONCE_TAG_STATE, UniversalTag.GENERALIZED_TIME.getValue(),
+                new StoreTill() );
 
         // --------------------------------------------------------------------------------------------
-        // Transition from till value to rtime 
+        // Transition from till value to rtime
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
-        //         rtime                    [6] 
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_RTIME_OR_NONCE_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_RTIME_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_RTIME_OR_NONCE_TAG_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_RTIME_STATE, KerberosConstants.KDC_REQ_BODY_RTIME_TAG,
-           new CheckNotNullLength() );
+        //         rtime                    [6]
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_RTIME_OR_NONCE_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_RTIME_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_RTIME_OR_NONCE_TAG_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_RTIME_STATE, KerberosConstants.KDC_REQ_BODY_RTIME_TAG,
+                new CheckNotNullLength<KdcReqBodyContainer>() );
 
         // --------------------------------------------------------------------------------------------
-        // Transition from till value to nonce 
+        // Transition from till value to nonce
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         nonce                    [7]
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_RTIME_OR_NONCE_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_NONCE_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_RTIME_OR_NONCE_TAG_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_NONCE_STATE, KerberosConstants.KDC_REQ_BODY_NONCE_TAG,
-            new CheckNotNullLength() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_RTIME_OR_NONCE_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_NONCE_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_RTIME_OR_NONCE_TAG_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_NONCE_STATE, KerberosConstants.KDC_REQ_BODY_NONCE_TAG,
+                new CheckNotNullLength<KdcReqBodyContainer>() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from rtime to nonce tag
@@ -248,9 +295,13 @@ public final class KdcReqBodyGrammar ext
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         rtime                    [6] KerberosTime
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_RTIME_STATE.ordinal()][UniversalTag.GENERALIZED_TIME.getValue()] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_RTIME_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_NONCE_TAG_STATE, UniversalTag.GENERALIZED_TIME.getValue(),
-            new StoreRTime() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_RTIME_STATE.ordinal()][UniversalTag.GENERALIZED_TIME
+            .getValue()] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_RTIME_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_NONCE_TAG_STATE,
+                UniversalTag.GENERALIZED_TIME.getValue(),
+                new StoreRTime() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from nonce tag to nonce value
@@ -258,9 +309,12 @@ public final class KdcReqBodyGrammar ext
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         nonce                    [7] UInt32
-       super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_NONCE_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_NONCE_TAG] = new GrammarTransition(
-           KdcReqBodyStatesEnum.KDC_REQ_BODY_NONCE_TAG_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_NONCE_STATE, KerberosConstants.KDC_REQ_BODY_NONCE_TAG,
-           new CheckNotNullLength() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_NONCE_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_NONCE_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_NONCE_TAG_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_NONCE_STATE,
+                KerberosConstants.KDC_REQ_BODY_NONCE_TAG,
+                new CheckNotNullLength<KdcReqBodyContainer>() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from nonce value to etype Tag
@@ -268,29 +322,38 @@ public final class KdcReqBodyGrammar ext
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         etype                    [8]
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_NONCE_STATE.ordinal()][UniversalTag.INTEGER.getValue()] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_NONCE_TAG_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_TAG_STATE, UniversalTag.INTEGER.getValue(),
-            new StoreNonce() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_NONCE_STATE.ordinal()][UniversalTag.INTEGER.getValue()] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_NONCE_TAG_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_TAG_STATE,
+                UniversalTag.INTEGER.getValue(),
+                new StoreNonce() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from etype Tag to etype Tag
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
-        //         etype                    [8] 
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_ETYPE_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_TAG_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_SEQ_STATE, KerberosConstants.KDC_REQ_BODY_ETYPE_TAG,
-            new CheckNotNullLength() );
+        //         etype                    [8]
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_TAG_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_ETYPE_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_TAG_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_SEQ_STATE,
+                KerberosConstants.KDC_REQ_BODY_ETYPE_TAG,
+                new CheckNotNullLength<KdcReqBodyContainer>() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from etype Tag to etype SEQ
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
-        //         etype                    [8] SEQUENCE OF 
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_SEQ_STATE.ordinal()][UniversalTag.SEQUENCE.getValue()] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_SEQ_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE, UniversalTag.SEQUENCE.getValue(),
-            new ETypeSequence() );
+        //         etype                    [8] SEQUENCE OF
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_SEQ_STATE.ordinal()][UniversalTag.SEQUENCE.getValue()] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_SEQ_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE,
+                UniversalTag.SEQUENCE.getValue(),
+                new ETypeSequence() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from etype SEQ to EType values
@@ -298,9 +361,12 @@ public final class KdcReqBodyGrammar ext
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         etype                    [8] SEQUENCE OF Int32
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE.ordinal()][UniversalTag.INTEGER.getValue()] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE, UniversalTag.INTEGER.getValue(),
-            new AddEType() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE.ordinal()][UniversalTag.INTEGER.getValue()] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE,
+                UniversalTag.INTEGER.getValue(),
+                new AddEType() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from EType values to addresses
@@ -308,9 +374,12 @@ public final class KdcReqBodyGrammar ext
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         addresses               [9]
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_ADDRESSES_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDRESSES_STATE, KerberosConstants.KDC_REQ_BODY_ADDRESSES_TAG,
-            new StoreAddresses() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_ADDRESSES_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDRESSES_STATE,
+                KerberosConstants.KDC_REQ_BODY_ADDRESSES_TAG,
+                new StoreAddresses() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from EType values to encAuthorizationData (addresses is empty)
@@ -318,9 +387,12 @@ public final class KdcReqBodyGrammar ext
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         enc-authorization-data  [10]
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_ENC_AUTHZ_DATA_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_ENC_AUTH_DATA_STATE, KerberosConstants.KDC_REQ_BODY_ENC_AUTHZ_DATA_TAG,
-            new StoreEncAuthorizationData() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_ENC_AUTHZ_DATA_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ENC_AUTH_DATA_STATE,
+                KerberosConstants.KDC_REQ_BODY_ENC_AUTHZ_DATA_TAG,
+                new StoreEncAuthorizationData() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from EType values to additionalTickets tag (addresses and enc-authorization data
@@ -329,11 +401,12 @@ public final class KdcReqBodyGrammar ext
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         additional-tickets      [11]
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG_STATE, KerberosConstants.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG,
-            new CheckNotNullLength() );
-    
-    
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ETYPE_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG_STATE,
+                KerberosConstants.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG,
+                new CheckNotNullLength<KdcReqBodyContainer>() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from addresses values to encAuthorizationData
@@ -341,9 +414,12 @@ public final class KdcReqBodyGrammar ext
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         enc-authorization-data  [10]
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDRESSES_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_ENC_AUTHZ_DATA_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDRESSES_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_ENC_AUTH_DATA_STATE, KerberosConstants.KDC_REQ_BODY_ENC_AUTHZ_DATA_TAG,
-            new StoreEncAuthorizationData() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDRESSES_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_ENC_AUTHZ_DATA_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDRESSES_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ENC_AUTH_DATA_STATE,
+                KerberosConstants.KDC_REQ_BODY_ENC_AUTHZ_DATA_TAG,
+                new StoreEncAuthorizationData() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from addresses values to additional-tickets tag
@@ -351,33 +427,38 @@ public final class KdcReqBodyGrammar ext
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         additional-tickets      [11]
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDRESSES_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDRESSES_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG_STATE, KerberosConstants.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG,
-            new CheckNotNullLength() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDRESSES_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDRESSES_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG_STATE,
+                KerberosConstants.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG,
+                new CheckNotNullLength<KdcReqBodyContainer>() );
 
-
-        
         // --------------------------------------------------------------------------------------------
         // Transition from encAuthorizationData to additional-tickets tag
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         additional-tickets      [11]
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ENC_AUTH_DATA_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_ENC_AUTH_DATA_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG_STATE, KerberosConstants.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG,
-            new CheckNotNullLength() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ENC_AUTH_DATA_STATE.ordinal()][KerberosConstants.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ENC_AUTH_DATA_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG_STATE,
+                KerberosConstants.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG,
+                new CheckNotNullLength<KdcReqBodyContainer>() );
 
-    
-    
         // --------------------------------------------------------------------------------------------
         // Transition from additional-tickets tag to Ticket SEQUENCE
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         additional-tickets      [11] SEQUENCE OF
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG_STATE.ordinal()][UniversalTag.SEQUENCE.getValue()] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_SEQ_STATE, UniversalTag.SEQUENCE.getValue(),
-            new CheckNotNullLength() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG_STATE.ordinal()][UniversalTag.SEQUENCE
+            .getValue()] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_TAG_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_SEQ_STATE, UniversalTag.SEQUENCE.getValue(),
+                new CheckNotNullLength<KdcReqBodyContainer>() );
 
         // --------------------------------------------------------------------------------------------
         // Transition from Ticket SEQUENCE to Ticket
@@ -385,27 +466,32 @@ public final class KdcReqBodyGrammar ext
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         additional-tickets      [11] SEQUENCE OF Ticket
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_SEQ_STATE.ordinal()][KerberosConstants.TICKET_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_SEQ_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_STATE, KerberosConstants.TICKET_TAG,
-            new AddTicket() );
-        
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_SEQ_STATE.ordinal()][KerberosConstants.TICKET_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_SEQ_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_STATE, KerberosConstants.TICKET_TAG,
+                new AddTicket() );
+
         // --------------------------------------------------------------------------------------------
         // Transition from Ticket to Ticket
         // --------------------------------------------------------------------------------------------
         // KDC-REQ-BODY    ::= SEQUENCE {
         //         ...
         //         additional-tickets      [11] SEQUENCE OF Ticket
-        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_STATE.ordinal()][KerberosConstants.TICKET_TAG] = new GrammarTransition(
-            KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_STATE, KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_STATE, KerberosConstants.TICKET_TAG,
-            new AddTicket() );
+        super.transitions[KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_STATE.ordinal()][KerberosConstants.TICKET_TAG] =
+            new GrammarTransition<KdcReqBodyContainer>(
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_STATE,
+                KdcReqBodyStatesEnum.KDC_REQ_BODY_ADDITIONAL_TICKETS_STATE, KerberosConstants.TICKET_TAG,
+                new AddTicket() );
     }
 
+
     /**
      * Get the instance of this grammar
-     * 
+     *
      * @return An instance on the KDC-REQ-BODY Grammar
      */
-    public static Grammar getInstance()
+    public static Grammar<KdcReqBodyContainer> getInstance()
     {
         return instance;
     }

Modified: directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/KdcReqBodyStatesEnum.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/KdcReqBodyStatesEnum.java?rev=1068124&r1=1068123&r2=1068124&view=diff
==============================================================================
--- directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/KdcReqBodyStatesEnum.java (original)
+++ directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/KdcReqBodyStatesEnum.java Mon Feb  7 20:49:04 2011
@@ -6,16 +6,16 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody;
 
@@ -27,20 +27,20 @@ import org.apache.directory.shared.asn1.
 /**
  * This class store the KDC-REQ-BODY grammar's constants. It is also used for debugging
  * purpose
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public enum KdcReqBodyStatesEnum implements States
 {
     // Start
     START_STATE,                            // 0
-    
+
     // ----- KDC-REQ-BODY message --------------------------------------
     KDC_REQ_BODY_SEQ_STATE,                     // 1
-    
+
     KDC_REQ_BODY_KDC_OPTIONS_TAG_STATE,         // 2
     KDC_REQ_BODY_KDC_OPTIONS_STATE,             // 3
-    
+
     KDC_REQ_BODY_CNAME_OR_REALM_TAG_STATE,      // 4
     KDC_REQ_BODY_CNAME_STATE,                   // 5
 
@@ -53,7 +53,7 @@ public enum KdcReqBodyStatesEnum impleme
 
     KDC_REQ_BODY_TILL_TAG_STATE,                // 10
     KDC_REQ_BODY_TILL_STATE,                    // 11
-    
+
     KDC_REQ_BODY_RTIME_OR_NONCE_TAG_STATE,      // 12
     KDC_REQ_BODY_RTIME_STATE,                   // 13
 
@@ -75,10 +75,10 @@ public enum KdcReqBodyStatesEnum impleme
     // End
     LAST_KDC_REQ_BODY_STATE;                    // 24
 
-    
+
     /**
      * Get the grammar name
-     * 
+     *
      * @param grammar The grammar code
      * @return The grammar name
      */
@@ -90,11 +90,11 @@ public enum KdcReqBodyStatesEnum impleme
 
     /**
      * Get the grammar name
-     * 
+     *
      * @param grammar The grammar class
      * @return The grammar name
      */
-    public String getGrammarName( Grammar grammar )
+    public String getGrammarName( Grammar<KdcReqBodyContainer> grammar )
     {
         if ( grammar instanceof KdcReqBodyGrammar )
         {
@@ -109,7 +109,7 @@ public enum KdcReqBodyStatesEnum impleme
 
     /**
      * Get the string representing the state
-     * 
+     *
      * @param state The state number
      * @return The String representing the state
      */
@@ -118,7 +118,7 @@ public enum KdcReqBodyStatesEnum impleme
         return ( ( state == LAST_KDC_REQ_BODY_STATE.ordinal() ) ? "KDC_REQ_BODY_END_STATE" : name() );
     }
 
-    
+
     /**
      * {@inheritDoc}
      */
@@ -126,8 +126,8 @@ public enum KdcReqBodyStatesEnum impleme
     {
         return this == LAST_KDC_REQ_BODY_STATE;
     }
-    
-    
+
+
     /**
      * {@inheritDoc}
      */

Modified: directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddEType.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddEType.java?rev=1068124&r1=1068123&r2=1068124&view=diff
==============================================================================
--- directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddEType.java (original)
+++ directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddEType.java Mon Feb  7 20:49:04 2011
@@ -6,27 +6,26 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody.actions;
 
 
-import org.apache.directory.shared.asn1.ber.Asn1Container;
+import org.apache.directory.shared.asn1.DecoderException;
 import org.apache.directory.shared.asn1.ber.grammar.GrammarAction;
+import org.apache.directory.shared.asn1.ber.tlv.IntegerDecoder;
 import org.apache.directory.shared.asn1.ber.tlv.IntegerDecoderException;
 import org.apache.directory.shared.asn1.ber.tlv.TLV;
 import org.apache.directory.shared.asn1.ber.tlv.Value;
-import org.apache.directory.shared.asn1.DecoderException;
-import org.apache.directory.shared.asn1.ber.tlv.IntegerDecoder;
 import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.kerberos.codec.kdcReqBody.KdcReqBodyContainer;
 import org.apache.directory.shared.kerberos.codec.types.EncryptionType;
@@ -38,10 +37,10 @@ import org.slf4j.LoggerFactory;
 
 /**
  * The action used to add an EType
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class AddEType extends GrammarAction
+public class AddEType extends GrammarAction<KdcReqBodyContainer>
 {
     /** The logger */
     private static final Logger LOG = LoggerFactory.getLogger( AddEType.class );
@@ -61,14 +60,12 @@ public class AddEType extends GrammarAct
     /**
      * {@inheritDoc}
      */
-    public void action( Asn1Container container ) throws DecoderException
+    public void action( KdcReqBodyContainer kdcReqBodyContainer ) throws DecoderException
     {
-        KdcReqBodyContainer kdcReqBodyContainer = ( KdcReqBodyContainer ) container;
-
         TLV tlv = kdcReqBodyContainer.getCurrentTLV();
 
         // The Length can't be null
-        if ( tlv.getLength() == 0 ) 
+        if ( tlv.getLength() == 0 )
         {
             LOG.error( I18n.err( I18n.ERR_04066 ) );
 
@@ -77,9 +74,9 @@ public class AddEType extends GrammarAct
         }
 
         KdcReqBody kdcReqBody = kdcReqBodyContainer.getKdcReqBody();
-        
+
         Value value = tlv.getValue();
-        
+
         try
         {
             int etype = IntegerDecoder.parse( value );
@@ -100,7 +97,7 @@ public class AddEType extends GrammarAct
             // This will generate a PROTOCOL_ERROR
             throw new DecoderException( ide.getMessage() );
         }
-        
-        container.setGrammarEndAllowed( true );
+
+        kdcReqBodyContainer.setGrammarEndAllowed( true );
     }
 }

Modified: directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddTicket.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddTicket.java?rev=1068124&r1=1068123&r2=1068124&view=diff
==============================================================================
--- directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddTicket.java (original)
+++ directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddTicket.java Mon Feb  7 20:49:04 2011
@@ -6,22 +6,21 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody.actions;
 
 
 import org.apache.directory.shared.asn1.DecoderException;
-import org.apache.directory.shared.asn1.ber.Asn1Container;
 import org.apache.directory.shared.asn1.ber.Asn1Decoder;
 import org.apache.directory.shared.asn1.ber.grammar.GrammarAction;
 import org.apache.directory.shared.asn1.ber.tlv.TLV;
@@ -36,10 +35,10 @@ import org.slf4j.LoggerFactory;
 
 /**
  * The action used to add a Ticket
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class AddTicket extends GrammarAction
+public class AddTicket extends GrammarAction<KdcReqBodyContainer>
 {
     /** The logger */
     private static final Logger LOG = LoggerFactory.getLogger( AddTicket.class );
@@ -59,14 +58,12 @@ public class AddTicket extends GrammarAc
     /**
      * {@inheritDoc}
      */
-    public void action( Asn1Container container ) throws DecoderException
+    public void action( KdcReqBodyContainer kdcReqBodyContainer ) throws DecoderException
     {
-        KdcReqBodyContainer kdcReqBodyContainer = ( KdcReqBodyContainer ) container;
-
         TLV tlv = kdcReqBodyContainer.getCurrentTLV();
 
         // The Length can't be null
-        if ( tlv.getLength() == 0 ) 
+        if ( tlv.getLength() == 0 )
         {
             LOG.error( I18n.err( I18n.ERR_04066 ) );
 
@@ -76,35 +73,35 @@ public class AddTicket extends GrammarAc
 
         // Now, let's decode the Ticket
         Asn1Decoder ticketDecoder = new Asn1Decoder();
-        
-        TicketContainer ticketContainer = new TicketContainer( container.getStream() );
+
+        TicketContainer ticketContainer = new TicketContainer( kdcReqBodyContainer.getStream() );
 
         // We have to move back to the Ticket tag
-        container.rewind();
+        kdcReqBodyContainer.rewind();
 
         // Decode the Ticket PDU
         try
         {
-            ticketDecoder.decode( container.getStream(), ticketContainer );
+            ticketDecoder.decode( kdcReqBodyContainer.getStream(), ticketContainer );
         }
         catch ( DecoderException de )
         {
             throw de;
         }
-        
+
         // Update the expected length for the current TLV
         tlv.setExpectedLength( tlv.getExpectedLength() - tlv.getLength() );
 
         // Update the parent
-        container.updateParent();
+        kdcReqBodyContainer.updateParent();
 
         // Store the Ticket in the container
         Ticket ticket = ticketContainer.getTicket();
         KdcReqBody kdcReqBody = kdcReqBodyContainer.getKdcReqBody();
         kdcReqBody.addAdditionalTicket( ticket );
 
-        container.setGrammarEndAllowed( true );
-        
+        kdcReqBodyContainer.setGrammarEndAllowed( true );
+
         if ( IS_DEBUG )
         {
             LOG.debug( "Added ticket:  {}", ticket );

Modified: directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/ETypeSequence.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/ETypeSequence.java?rev=1068124&r1=1068123&r2=1068124&view=diff
==============================================================================
--- directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/ETypeSequence.java (original)
+++ directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/ETypeSequence.java Mon Feb  7 20:49:04 2011
@@ -6,33 +6,32 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody.actions;
 
 
-import org.apache.directory.shared.asn1.ber.Asn1Container;
+import org.apache.directory.shared.asn1.DecoderException;
 import org.apache.directory.shared.asn1.ber.grammar.GrammarAction;
 import org.apache.directory.shared.asn1.ber.tlv.TLV;
-import org.apache.directory.shared.asn1.DecoderException;
 import org.apache.directory.shared.kerberos.codec.kdcReqBody.KdcReqBodyContainer;
 
 
 /**
  * The action used to store the KDC-REQ-BODY EType sequence.
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class ETypeSequence extends GrammarAction
+public class ETypeSequence extends GrammarAction<KdcReqBodyContainer>
 {
     /**
      * Instantiates a new ETypeSequence action.
@@ -46,16 +45,14 @@ public class ETypeSequence extends Gramm
     /**
      * {@inheritDoc}
      */
-    public void action( Asn1Container container ) throws DecoderException
+    public void action( KdcReqBodyContainer kdcReqBodyContainer ) throws DecoderException
     {
-        KdcReqBodyContainer kdcReqBodyContainer = ( KdcReqBodyContainer ) container;
-
         TLV tlv = kdcReqBodyContainer.getCurrentTLV();
 
         // The Length can be null, in this case, we can potentially exit from this grammar
-        if ( tlv.getLength() == 0 ) 
+        if ( tlv.getLength() == 0 )
         {
-            container.setGrammarEndAllowed( true );
+            kdcReqBodyContainer.setGrammarEndAllowed( true );
         }
     }
 }

Modified: directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/KdcReqBodyInit.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/KdcReqBodyInit.java?rev=1068124&r1=1068123&r2=1068124&view=diff
==============================================================================
--- directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/KdcReqBodyInit.java (original)
+++ directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/KdcReqBodyInit.java Mon Feb  7 20:49:04 2011
@@ -6,22 +6,21 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody.actions;
 
 
 import org.apache.directory.shared.asn1.DecoderException;
-import org.apache.directory.shared.asn1.ber.Asn1Container;
 import org.apache.directory.shared.asn1.ber.grammar.GrammarAction;
 import org.apache.directory.shared.asn1.ber.tlv.TLV;
 import org.apache.directory.shared.i18n.I18n;
@@ -33,10 +32,10 @@ import org.slf4j.LoggerFactory;
 
 /**
  * The action used to initialize the KDC-REQ-BODY object
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class KdcReqBodyInit extends GrammarAction
+public class KdcReqBodyInit extends GrammarAction<KdcReqBodyContainer>
 {
     /** The logger */
     private static final Logger LOG = LoggerFactory.getLogger( KdcReqBodyInit.class );
@@ -57,10 +56,8 @@ public class KdcReqBodyInit extends Gram
     /**
      * {@inheritDoc}
      */
-    public void action( Asn1Container container ) throws DecoderException
+    public void action( KdcReqBodyContainer kdcReqBodyContainer ) throws DecoderException
     {
-        KdcReqBodyContainer kdcReqBodyContainer = ( KdcReqBodyContainer ) container;
-
         TLV tlv = kdcReqBodyContainer.getCurrentTLV();
 
         // The Length should not be null
@@ -71,10 +68,10 @@ public class KdcReqBodyInit extends Gram
             // This will generate a PROTOCOL_ERROR
             throw new DecoderException( I18n.err( I18n.ERR_04067 ) );
         }
-        
+
         KdcReqBody kdcReqBody = new KdcReqBody();
         kdcReqBodyContainer.setKdcReqBody( kdcReqBody );
-        
+
         if ( IS_DEBUG )
         {
             LOG.debug( "KdcReqBody created" );

Modified: directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreAddresses.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreAddresses.java?rev=1068124&r1=1068123&r2=1068124&view=diff
==============================================================================
--- directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreAddresses.java (original)
+++ directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreAddresses.java Mon Feb  7 20:49:04 2011
@@ -6,21 +6,20 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody.actions;
 
 
-import org.apache.directory.shared.asn1.ber.Asn1Container;
 import org.apache.directory.shared.kerberos.codec.actions.AbstractReadHostAddresses;
 import org.apache.directory.shared.kerberos.codec.kdcReqBody.KdcReqBodyContainer;
 import org.apache.directory.shared.kerberos.components.HostAddresses;
@@ -28,10 +27,10 @@ import org.apache.directory.shared.kerbe
 
 /**
  * The action used to store the Addresses
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class StoreAddresses extends AbstractReadHostAddresses
+public class StoreAddresses extends AbstractReadHostAddresses<KdcReqBodyContainer>
 {
     /**
      * Instantiates a new StoreAddresses action.
@@ -46,10 +45,9 @@ public class StoreAddresses extends Abst
      * {@inheritDoc}
      */
     @Override
-    protected void setHostAddresses( HostAddresses hostAddresses, Asn1Container container )
+    protected void setHostAddresses( HostAddresses hostAddresses, KdcReqBodyContainer kdcReqBodyContainer )
     {
-        KdcReqBodyContainer kdcReqBodyContainer = ( KdcReqBodyContainer ) container;
         kdcReqBodyContainer.getKdcReqBody().setAddresses( hostAddresses );
-        container.setGrammarEndAllowed( true );
+        kdcReqBodyContainer.setGrammarEndAllowed( true );
     }
 }

Modified: directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreCName.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreCName.java?rev=1068124&r1=1068123&r2=1068124&view=diff
==============================================================================
--- directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreCName.java (original)
+++ directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreCName.java Mon Feb  7 20:49:04 2011
@@ -6,21 +6,20 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody.actions;
 
 
-import org.apache.directory.shared.asn1.ber.Asn1Container;
 import org.apache.directory.shared.kerberos.codec.actions.AbstractReadPrincipalName;
 import org.apache.directory.shared.kerberos.codec.kdcReqBody.KdcReqBodyContainer;
 import org.apache.directory.shared.kerberos.components.PrincipalName;
@@ -28,10 +27,10 @@ import org.apache.directory.shared.kerbe
 
 /**
  * The action used to store the KDC-REQ-BODY CName
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class StoreCName extends AbstractReadPrincipalName
+public class StoreCName extends AbstractReadPrincipalName<KdcReqBodyContainer>
 {
     /**
      * Instantiates a new StoreCName action.
@@ -45,9 +44,8 @@ public class StoreCName extends Abstract
      * {@inheritDoc}
      */
     @Override
-    protected void setPrincipalName( PrincipalName principalName, Asn1Container container )
+    protected void setPrincipalName( PrincipalName principalName, KdcReqBodyContainer kdcReqBodyContainer )
     {
-        KdcReqBodyContainer kdcReqBodyContainer = ( KdcReqBodyContainer ) container;
         kdcReqBodyContainer.getKdcReqBody().setCName( principalName );
     }
 }

Modified: directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreEncAuthorizationData.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreEncAuthorizationData.java?rev=1068124&r1=1068123&r2=1068124&view=diff
==============================================================================
--- directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreEncAuthorizationData.java (original)
+++ directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreEncAuthorizationData.java Mon Feb  7 20:49:04 2011
@@ -6,21 +6,20 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody.actions;
 
 
-import org.apache.directory.shared.asn1.ber.Asn1Container;
 import org.apache.directory.shared.kerberos.codec.actions.AbstractReadEncryptedPart;
 import org.apache.directory.shared.kerberos.codec.kdcReqBody.KdcReqBodyContainer;
 import org.apache.directory.shared.kerberos.components.EncryptedData;
@@ -28,10 +27,10 @@ import org.apache.directory.shared.kerbe
 
 /**
  * The action used to store the EncAuthorizationData
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class StoreEncAuthorizationData extends AbstractReadEncryptedPart
+public class StoreEncAuthorizationData extends AbstractReadEncryptedPart<KdcReqBodyContainer>
 {
     /**
      * Instantiates a new StoreEncAuthorizationData action.
@@ -46,11 +45,10 @@ public class StoreEncAuthorizationData e
      * {@inheritDoc}
      */
     @Override
-    protected void setEncryptedData( EncryptedData encryptedData, Asn1Container container )
+    protected void setEncryptedData( EncryptedData encryptedData, KdcReqBodyContainer kdcReqBodyContainer )
     {
-        KdcReqBodyContainer kdcReqBodyContainer = ( KdcReqBodyContainer ) container;
         kdcReqBodyContainer.getKdcReqBody().setEncAuthorizationData( encryptedData );
 
-        container.setGrammarEndAllowed( true );
+        kdcReqBodyContainer.setGrammarEndAllowed( true );
     }
 }

Modified: directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreFrom.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreFrom.java?rev=1068124&r1=1068123&r2=1068124&view=diff
==============================================================================
--- directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreFrom.java (original)
+++ directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreFrom.java Mon Feb  7 20:49:04 2011
@@ -6,22 +6,21 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody.actions;
 
 
 import org.apache.directory.shared.asn1.DecoderException;
-import org.apache.directory.shared.asn1.ber.Asn1Container;
 import org.apache.directory.shared.asn1.ber.grammar.GrammarAction;
 import org.apache.directory.shared.asn1.ber.tlv.TLV;
 import org.apache.directory.shared.asn1.ber.tlv.Value;
@@ -36,10 +35,10 @@ import org.slf4j.LoggerFactory;
 
 /**
  * The action used to store the from KerberosTime
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class StoreFrom extends GrammarAction
+public class StoreFrom extends GrammarAction<KdcReqBodyContainer>
 {
     /** The logger */
     private static final Logger LOG = LoggerFactory.getLogger( StoreFrom.class );
@@ -60,10 +59,8 @@ public class StoreFrom extends GrammarAc
     /**
      * {@inheritDoc}
      */
-    public void action( Asn1Container container ) throws DecoderException
+    public void action( KdcReqBodyContainer kdcReqBodyContainer ) throws DecoderException
     {
-        KdcReqBodyContainer kdcReqBodyContainer = ( KdcReqBodyContainer ) container;
-
         TLV tlv = kdcReqBodyContainer.getCurrentTLV();
 
         // The Length should not be null and should be 15
@@ -74,18 +71,18 @@ public class StoreFrom extends GrammarAc
             // This will generate a PROTOCOL_ERROR
             throw new DecoderException( I18n.err( I18n.ERR_04067 ) );
         }
-        
+
         KdcReqBody kdcReqBody = kdcReqBodyContainer.getKdcReqBody();
-        
+
         // The value is the KerberosTime
         Value value = tlv.getValue();
         String date = Strings.utf8ToString(value.getData());
-        
+
         try
         {
             KerberosTime from = new KerberosTime( date );
             kdcReqBody.setFrom( from );
-            
+
             if ( IS_DEBUG )
             {
                 LOG.debug( "From : {}", from );

Modified: directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreKdcOptions.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreKdcOptions.java?rev=1068124&r1=1068123&r2=1068124&view=diff
==============================================================================
--- directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreKdcOptions.java (original)
+++ directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreKdcOptions.java Mon Feb  7 20:49:04 2011
@@ -6,22 +6,21 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody.actions;
 
 
 import org.apache.directory.shared.asn1.DecoderException;
-import org.apache.directory.shared.asn1.ber.Asn1Container;
 import org.apache.directory.shared.asn1.ber.grammar.GrammarAction;
 import org.apache.directory.shared.asn1.ber.tlv.TLV;
 import org.apache.directory.shared.i18n.I18n;
@@ -34,10 +33,10 @@ import org.slf4j.LoggerFactory;
 
 /**
  * The action used to store the KDCOptions
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class StoreKdcOptions extends GrammarAction
+public class StoreKdcOptions extends GrammarAction<KdcReqBodyContainer>
 {
     /** The logger */
     private static final Logger LOG = LoggerFactory.getLogger( StoreKdcOptions.class );
@@ -58,10 +57,8 @@ public class StoreKdcOptions extends Gra
     /**
      * {@inheritDoc}
      */
-    public void action( Asn1Container container ) throws DecoderException
+    public void action( KdcReqBodyContainer kdcReqBodyContainer ) throws DecoderException
     {
-        KdcReqBodyContainer kdcReqBodyContainer = ( KdcReqBodyContainer ) container;
-
         TLV tlv = kdcReqBodyContainer.getCurrentTLV();
 
         // The Length should not be null, and should be 5
@@ -72,12 +69,12 @@ public class StoreKdcOptions extends Gra
             // This will generate a PROTOCOL_ERROR
             throw new DecoderException( I18n.err( I18n.ERR_04067 ) );
         }
-        
+
         KdcReqBody kdcReqBody = kdcReqBodyContainer.getKdcReqBody();
         KdcOptions kdcOptions = new KdcOptions( tlv.getValue().getData() );
-        
+
         kdcReqBody.setKdcOptions( kdcOptions );
-        
+
         if ( IS_DEBUG )
         {
             LOG.debug( "KDCOptions : {}", kdcOptions );

Modified: directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreNonce.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreNonce.java?rev=1068124&r1=1068123&r2=1068124&view=diff
==============================================================================
--- directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreNonce.java (original)
+++ directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreNonce.java Mon Feb  7 20:49:04 2011
@@ -6,31 +6,30 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody.actions;
 
 
-import org.apache.directory.shared.asn1.ber.Asn1Container;
 import org.apache.directory.shared.asn1.actions.AbstractReadInteger;
 import org.apache.directory.shared.kerberos.codec.kdcReqBody.KdcReqBodyContainer;
 
 
 /**
  * The action used to store the Nonce
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class StoreNonce extends AbstractReadInteger
+public class StoreNonce extends AbstractReadInteger<KdcReqBodyContainer>
 {
     /**
      * Instantiates a new StoreNonce action.
@@ -44,10 +43,9 @@ public class StoreNonce extends Abstract
     /**
      * {@inheritDoc}
      */
-    public void setIntegerValue( int value, Asn1Container container )
+    @Override
+    public void setIntegerValue( int value, KdcReqBodyContainer kdcReqBodyContainer )
     {
-        KdcReqBodyContainer kdcReqBodyContainer = ( KdcReqBodyContainer ) container;
-
         kdcReqBodyContainer.getKdcReqBody().setNonce( value );
     }
 }

Modified: directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreRTime.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreRTime.java?rev=1068124&r1=1068123&r2=1068124&view=diff
==============================================================================
--- directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreRTime.java (original)
+++ directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreRTime.java Mon Feb  7 20:49:04 2011
@@ -6,21 +6,20 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody.actions;
 
 
-import org.apache.directory.shared.asn1.ber.Asn1Container;
 import org.apache.directory.shared.kerberos.KerberosTime;
 import org.apache.directory.shared.kerberos.codec.actions.AbstractReadKerberosTime;
 import org.apache.directory.shared.kerberos.codec.kdcReqBody.KdcReqBodyContainer;
@@ -28,10 +27,10 @@ import org.apache.directory.shared.kerbe
 
 /**
  * The action used to store the rtime KerberosTime
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class StoreRTime extends AbstractReadKerberosTime
+public class StoreRTime extends AbstractReadKerberosTime<KdcReqBodyContainer>
 {
     /**
      * Instantiates a new StoreRTime action.
@@ -46,9 +45,8 @@ public class StoreRTime extends Abstract
      * {@inheritDoc}
      */
     @Override
-    protected void setKerberosTime( KerberosTime krbtime, Asn1Container container )
+    protected void setKerberosTime( KerberosTime krbtime, KdcReqBodyContainer kdcReqBodyContainer )
     {
-        KdcReqBodyContainer kdcReqBodyContainer = ( KdcReqBodyContainer ) container;
         kdcReqBodyContainer.getKdcReqBody().setRtime( krbtime );
     }
 }

Modified: directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreRealm.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreRealm.java?rev=1068124&r1=1068123&r2=1068124&view=diff
==============================================================================
--- directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreRealm.java (original)
+++ directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreRealm.java Mon Feb  7 20:49:04 2011
@@ -6,31 +6,30 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody.actions;
 
 
-import org.apache.directory.shared.asn1.ber.Asn1Container;
 import org.apache.directory.shared.kerberos.codec.actions.AbstractReadRealm;
 import org.apache.directory.shared.kerberos.codec.kdcReqBody.KdcReqBodyContainer;
 
 
 /**
  * The action used to store the Realm
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class StoreRealm extends AbstractReadRealm
+public class StoreRealm extends AbstractReadRealm<KdcReqBodyContainer>
 {
     /**
      * Instantiates a new StoreRealm action.
@@ -45,9 +44,8 @@ public class StoreRealm extends Abstract
      * {@inheritDoc}
      */
     @Override
-    protected void setRealm( String srealm, Asn1Container container )
+    protected void setRealm( String srealm, KdcReqBodyContainer kdcReqBodyContainer )
     {
-        KdcReqBodyContainer kdcReqBodyContainer = ( KdcReqBodyContainer ) container;
         kdcReqBodyContainer.getKdcReqBody().setRealm( srealm );
     }
 }

Modified: directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreSName.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreSName.java?rev=1068124&r1=1068123&r2=1068124&view=diff
==============================================================================
--- directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreSName.java (original)
+++ directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreSName.java Mon Feb  7 20:49:04 2011
@@ -6,21 +6,20 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody.actions;
 
 
-import org.apache.directory.shared.asn1.ber.Asn1Container;
 import org.apache.directory.shared.kerberos.codec.actions.AbstractReadPrincipalName;
 import org.apache.directory.shared.kerberos.codec.kdcReqBody.KdcReqBodyContainer;
 import org.apache.directory.shared.kerberos.components.PrincipalName;
@@ -28,10 +27,10 @@ import org.apache.directory.shared.kerbe
 
 /**
  * The action used to store the SName
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class StoreSName extends AbstractReadPrincipalName
+public class StoreSName extends AbstractReadPrincipalName<KdcReqBodyContainer>
 {
     /**
      * Instantiates a new StoreSName action.
@@ -46,9 +45,8 @@ public class StoreSName extends Abstract
      * {@inheritDoc}
      */
     @Override
-    protected void setPrincipalName( PrincipalName principalName, Asn1Container container )
+    protected void setPrincipalName( PrincipalName principalName, KdcReqBodyContainer kdcReqBodyContainer )
     {
-        KdcReqBodyContainer kdcReqBodyContainer = ( KdcReqBodyContainer ) container;
         kdcReqBodyContainer.getKdcReqBody().setSName( principalName );
     }
 }

Modified: directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreTill.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreTill.java?rev=1068124&r1=1068123&r2=1068124&view=diff
==============================================================================
--- directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreTill.java (original)
+++ directory/apacheds/branches/m1/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/StoreTill.java Mon Feb  7 20:49:04 2011
@@ -6,22 +6,21 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.kerberos.codec.kdcReqBody.actions;
 
 
 import org.apache.directory.shared.asn1.DecoderException;
-import org.apache.directory.shared.asn1.ber.Asn1Container;
 import org.apache.directory.shared.asn1.ber.grammar.GrammarAction;
 import org.apache.directory.shared.asn1.ber.tlv.TLV;
 import org.apache.directory.shared.asn1.ber.tlv.Value;
@@ -36,10 +35,10 @@ import org.slf4j.LoggerFactory;
 
 /**
  * The action used to store the till KerberosTime
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class StoreTill extends GrammarAction
+public class StoreTill extends GrammarAction<KdcReqBodyContainer>
 {
     /** The logger */
     private static final Logger LOG = LoggerFactory.getLogger( StoreTill.class );
@@ -60,10 +59,8 @@ public class StoreTill extends GrammarAc
     /**
      * {@inheritDoc}
      */
-    public void action( Asn1Container container ) throws DecoderException
+    public void action( KdcReqBodyContainer kdcReqBodyContainer ) throws DecoderException
     {
-        KdcReqBodyContainer kdcReqBodyContainer = ( KdcReqBodyContainer ) container;
-
         TLV tlv = kdcReqBodyContainer.getCurrentTLV();
 
         // The Length should not be null and should be 15
@@ -74,18 +71,18 @@ public class StoreTill extends GrammarAc
             // This will generate a PROTOCOL_ERROR
             throw new DecoderException( I18n.err( I18n.ERR_04067 ) );
         }
-        
+
         KdcReqBody kdcReqBody = kdcReqBodyContainer.getKdcReqBody();
-        
+
         // The value is the KerberosTime
         Value value = tlv.getValue();
         String date = Strings.utf8ToString(value.getData());
-        
+
         try
         {
             KerberosTime till = new KerberosTime( date );
             kdcReqBody.setTill( till );
-            
+
             if ( IS_DEBUG )
             {
                 LOG.debug( "Till : {}", till );



Mime
View raw message