directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1034725 - in /directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos: KerberosConstants.java components/EncryptionKey.java
Date Sat, 13 Nov 2010 10:52:24 GMT
Author: kayyagari
Date: Sat Nov 13 10:52:24 2010
New Revision: 1034725

URL: http://svn.apache.org/viewvc?rev=1034725&view=rev
Log:
o added EncryptionKey tags

Modified:
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosConstants.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptionKey.java

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosConstants.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosConstants.java?rev=1034725&r1=1034724&r2=1034725&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosConstants.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosConstants.java
Sat Nov 13 10:52:24 2010
@@ -61,6 +61,10 @@ public class KerberosConstants
     public static final int PADATA_TYPE_TAG = 0xA1;
     public static final int PADATA_VALUE_TAG = 0xA2;
 
+    /** EncryptionKey tags */
+    public static final int ENCRYPTION_KEY_TYPE_TAG = 0xA0;
+    public static final int ENCRYPTION_KEY_VALUE_TAG = 0xA1;
+
     /** KRB-REQ-BODY's tags */
     public static final int KDC_REQ_BODY_KDC_OPTIONS_TAG = 0xA0;
     public static final int KDC_REQ_BODY_CNAME_TAG = 0xA1;

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptionKey.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptionKey.java?rev=1034725&r1=1034724&r2=1034725&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptionKey.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/EncryptionKey.java
Sat Nov 13 10:52:24 2010
@@ -30,6 +30,7 @@ import org.apache.directory.shared.asn1.
 import org.apache.directory.shared.asn1.ber.tlv.UniversalTag;
 import org.apache.directory.shared.asn1.ber.tlv.Value;
 import org.apache.directory.shared.asn1.codec.EncoderException;
+import org.apache.directory.shared.kerberos.KerberosConstants;
 import org.apache.directory.shared.kerberos.codec.types.EncryptionType;
 import org.apache.directory.shared.ldap.util.StringTools;
 import org.slf4j.Logger;
@@ -294,12 +295,12 @@ public class EncryptionKey extends Abstr
             buffer.put( TLV.getBytes( encryptionKeyLength ) );
 
             // The keyType, first the tag, then the value
-            buffer.put( ( byte ) 0xA0 );
+            buffer.put( ( byte ) KerberosConstants.ENCRYPTION_KEY_TYPE_TAG );
             buffer.put( TLV.getBytes( keyTypeLength ) );
             Value.encode( buffer, keyType.getValue() );
 
             // The keyValue, first the tag, then the value
-            buffer.put( ( byte ) 0xA1 );
+            buffer.put( ( byte ) KerberosConstants.ENCRYPTION_KEY_VALUE_TAG );
             buffer.put( TLV.getBytes( keyValueLength ) );
             Value.encode( buffer, keyValue );
         }



Mime
View raw message