directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1041388 - /directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/components/AuthenticatorModifier.java
Date Thu, 02 Dec 2010 14:29:38 GMT
Author: elecharny
Date: Thu Dec  2 14:29:38 2010
New Revision: 1041388

URL: http://svn.apache.org/viewvc?rev=1041388&view=rev
Log:
Fixed some issues with the Authenticator constructor call

Modified:
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/components/AuthenticatorModifier.java

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/components/AuthenticatorModifier.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/components/AuthenticatorModifier.java?rev=1041388&r1=1041387&r2=1041388&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/components/AuthenticatorModifier.java
(original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/components/AuthenticatorModifier.java
Thu Dec  2 14:29:38 2010
@@ -28,6 +28,7 @@ import org.apache.directory.shared.kerbe
 import org.apache.directory.shared.kerberos.components.Checksum;
 import org.apache.directory.shared.kerberos.components.EncryptionKey;
 import org.apache.directory.shared.kerberos.components.PrincipalName;
+import org.apache.directory.shared.kerberos.messages.Authenticator;
 
 
 /**
@@ -58,8 +59,18 @@ public class AuthenticatorModifier
             clientPrincipal = clientModifier.getKerberosPrincipal();
         }
 
-        return new Authenticator( versionNumber, clientPrincipal, checksum, clientMicroSecond,
clientTime,
-            subSessionKey, sequenceNumber, authorizationData );
+        Authenticator authenticator = new Authenticator();
+        authenticator.setProtocolVersionNumber( versionNumber );
+        authenticator.setCksum( checksum );
+        authenticator.setCusec( clientMicroSecond );
+        authenticator.setCTime( clientTime );
+        authenticator.setSubKey( subSessionKey );
+        authenticator.setSeqNumber( sequenceNumber );
+        authenticator.setAuthorizationData( authorizationData );
+        authenticator.setCName( new PrincipalName( clientPrincipal.getName(), clientPrincipal.getNameType()
) );
+        authenticator.setCRealm( clientPrincipal.getRealm() );
+        
+        return authenticator;
     }
 
 



Mime
View raw message