directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1034724 - in /directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec: encryptedData/actions/EncryptedDataEType.java kdcReqBody/actions/AddEType.java types/EncryptionType.java
Date Sat, 13 Nov 2010 10:50:25 GMT
Author: kayyagari
Date: Sat Nov 13 10:50:25 2010
New Revision: 1034724

URL: http://svn.apache.org/viewvc?rev=1034724&view=rev
Log:
o renmaed 'getTypeByOrdinal' to 'getTypeByValue'

Modified:
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encryptedData/actions/EncryptedDataEType.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddEType.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/types/EncryptionType.java

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encryptedData/actions/EncryptedDataEType.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encryptedData/actions/EncryptedDataEType.java?rev=1034724&r1=1034723&r2=1034724&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encryptedData/actions/EncryptedDataEType.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/encryptedData/actions/EncryptedDataEType.java
Sat Nov 13 10:50:25 2010
@@ -86,7 +86,7 @@ public class EncryptedDataEType extends 
         try
         {
             int eType = IntegerDecoder.parse( value );
-            encryptionType = EncryptionType.getTypeByOrdinal( eType );
+            encryptionType = EncryptionType.getTypeByValue( eType );
 
             encryptedData.setEType( encryptionType );
 

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddEType.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddEType.java?rev=1034724&r1=1034723&r2=1034724&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddEType.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/kdcReqBody/actions/AddEType.java
Sat Nov 13 10:50:25 2010
@@ -83,7 +83,7 @@ public class AddEType extends GrammarAct
         try
         {
             int etype = IntegerDecoder.parse( value );
-            EncryptionType encryptionType = EncryptionType.getTypeByOrdinal( etype );
+            EncryptionType encryptionType = EncryptionType.getTypeByValue( etype );
 
             kdcReqBody.addEType( encryptionType );
 

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/types/EncryptionType.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/types/EncryptionType.java?rev=1034724&r1=1034723&r2=1034724&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/types/EncryptionType.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/types/EncryptionType.java
Sat Nov 13 10:50:25 2010
@@ -209,7 +209,7 @@ public enum EncryptionType
      * @param type
      * @return The encryption type.
      */
-    public static EncryptionType getTypeByOrdinal( int type )
+    public static EncryptionType getTypeByValue( int type )
     {
         if ( encryptionTypesByOrdinal.containsKey( type ) )
         {



Mime
View raw message