directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r151254 - incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/io/ChangePasswordDataDecoder.java incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/io/ChangePasswordRequestDecoder.java
Date Thu, 03 Feb 2005 23:39:10 GMT
Author: erodriguez
Date: Thu Feb  3 15:39:08 2005
New Revision: 151254

URL: http://svn.apache.org/viewcvs?view=rev&rev=151254
Log:
Updates resulting from move of kerberos-core codecs to object composition.

Modified:
    incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/io/ChangePasswordDataDecoder.java
    incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/io/ChangePasswordRequestDecoder.java

Modified: incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/io/ChangePasswordDataDecoder.java
URL: http://svn.apache.org/viewcvs/incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/io/ChangePasswordDataDecoder.java?view=diff&r1=151253&r2=151254
==============================================================================
--- incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/io/ChangePasswordDataDecoder.java
(original)
+++ incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/io/ChangePasswordDataDecoder.java
Thu Feb  3 15:39:08 2005
@@ -28,10 +28,10 @@
 import org.apache.asn1.der.DERTaggedObject;
 import org.apache.changepw.value.ChangePasswordData;
 import org.apache.changepw.value.ChangePasswordDataModifier;
-import org.apache.kerberos.io.decoder.KerberosMessageDecoder;
+import org.apache.kerberos.io.decoder.PrincipalNameDecoder;
 
 
-public class ChangePasswordDataDecoder extends KerberosMessageDecoder
+public class ChangePasswordDataDecoder
 {
 	public ChangePasswordData decodeChangePasswordData( byte[] encodedChangePasswdData )
 		throws IOException
@@ -60,7 +60,7 @@
 					break;
 				case 1:
 					DERSequence tag1 = (DERSequence) derObject;
-					modifier.setTargetName( decodePrincipalName( tag1 ) );
+					modifier.setTargetName( PrincipalNameDecoder.decode( tag1 ) );
 					break;
 				case 2:
 					DERGeneralString tag2 = (DERGeneralString) derObject;

Modified: incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/io/ChangePasswordRequestDecoder.java
URL: http://svn.apache.org/viewcvs/incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/io/ChangePasswordRequestDecoder.java?view=diff&r1=151253&r2=151254
==============================================================================
--- incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/io/ChangePasswordRequestDecoder.java
(original)
+++ incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/io/ChangePasswordRequestDecoder.java
Thu Feb  3 15:39:08 2005
@@ -22,12 +22,11 @@
 import org.apache.changepw.messages.ChangePasswordRequest;
 import org.apache.changepw.messages.ChangePasswordRequestModifier;
 import org.apache.kerberos.io.decoder.ApplicationRequestDecoder;
-import org.apache.kerberos.io.decoder.KerberosMessageDecoder;
 import org.apache.kerberos.io.decoder.PrivateMessageDecoder;
 import org.apache.kerberos.messages.ApplicationRequest;
 import org.apache.kerberos.messages.application.PrivateMessage;
 
-public class ChangePasswordRequestDecoder extends KerberosMessageDecoder
+public class ChangePasswordRequestDecoder
 {
 	public ChangePasswordRequest decode( ByteBuffer buf ) throws IOException
 	{



Mime
View raw message