directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1036396 - /directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcRep/KdcRepGrammar.java
Date Thu, 18 Nov 2010 10:53:22 GMT
Author: kayyagari
Date: Thu Nov 18 10:53:22 2010
New Revision: 1036396

URL: http://svn.apache.org/viewvc?rev=1036396&view=rev
Log:
o use the common action for checking message type

Modified:
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcRep/KdcRepGrammar.java

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcRep/KdcRepGrammar.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcRep/KdcRepGrammar.java?rev=1036396&r1=1036395&r2=1036396&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcRep/KdcRepGrammar.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcRep/KdcRepGrammar.java
Thu Nov 18 10:53:22 2010
@@ -25,9 +25,10 @@ import org.apache.directory.shared.asn1.
 import org.apache.directory.shared.asn1.ber.grammar.GrammarTransition;
 import org.apache.directory.shared.asn1.ber.tlv.UniversalTag;
 import org.apache.directory.shared.kerberos.KerberosConstants;
+import org.apache.directory.shared.kerberos.KerberosMessageType;
+import org.apache.directory.shared.kerberos.codec.actions.CheckMsgType;
 import org.apache.directory.shared.kerberos.codec.actions.CheckNotNullLength;
 import org.apache.directory.shared.kerberos.codec.kdcRep.actions.AddPaData;
-import org.apache.directory.shared.kerberos.codec.kdcRep.actions.CheckMsgType;
 import org.apache.directory.shared.kerberos.codec.kdcRep.actions.StoreCName;
 import org.apache.directory.shared.kerberos.codec.kdcRep.actions.StoreCRealm;
 import org.apache.directory.shared.kerberos.codec.kdcRep.actions.StoreEncPart;
@@ -113,7 +114,7 @@ public final class KdcRepGrammar extends
         //         msg-type        [1] INTEGER (11 -- AS -- | 13 -- TGS --),
         super.transitions[KdcRepStatesEnum.KDC_REP_MSG_TYPE_TAG_STATE.ordinal()][UniversalTag.INTEGER.getValue()]
= new GrammarTransition(
             KdcRepStatesEnum.KDC_REP_MSG_TYPE_TAG_STATE, KdcRepStatesEnum.KDC_REP_MSG_TYPE_STATE,
UniversalTag.INTEGER.getValue(),
-            new CheckMsgType());
+            new CheckMsgType( "KDC-REP msg-type", KerberosMessageType.AS_REP, KerberosMessageType.TGS_REP
) );
         
         // --------------------------------------------------------------------------------------------
         // Transition from msg-type value pa-data tag



Mime
View raw message