directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r151099 - incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/service/ChangePasswordServiceImpl.java
Date Thu, 03 Feb 2005 01:43:33 GMT
Author: erodriguez
Date: Wed Feb  2 17:43:32 2005
New Revision: 151099

URL: http://svn.apache.org/viewcvs?view=rev&rev=151099
Log:
Moved selection of encryption engine to static factory method.

Modified:
    incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/service/ChangePasswordServiceImpl.java

Modified: incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/service/ChangePasswordServiceImpl.java
URL: http://svn.apache.org/viewcvs/incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/service/ChangePasswordServiceImpl.java?view=diff&r1=151098&r2=151099
==============================================================================
--- incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/service/ChangePasswordServiceImpl.java
(original)
+++ incubator/directory/changepw/trunk/core/src/java/org/apache/changepw/service/ChangePasswordServiceImpl.java
Wed Feb  2 17:43:32 2005
@@ -33,6 +33,7 @@
 import org.apache.changepw.value.ChangePasswordData;
 import org.apache.changepw.value.ChangePasswordDataModifier;
 import org.apache.kerberos.crypto.encryption.EncryptionEngine;
+import org.apache.kerberos.crypto.encryption.EncryptionEngineFactory;
 import org.apache.kerberos.io.decoder.EncKrbPrivPartDecoder;
 import org.apache.kerberos.io.encoder.EncApRepPartEncoder;
 import org.apache.kerberos.io.encoder.EncKrbPrivPartEncoder;
@@ -93,7 +94,7 @@
 		EncryptedData encReqPrivPart = request.getPrivateMessage().getEncryptedPart();
 		EncKrbPrivPart privatePart;
 		try {
-            EncryptionEngine engine = getEncryptionEngine(sessionKey);
+            EncryptionEngine engine = EncryptionEngineFactory.getEncryptionEngineFor( sessionKey
);
 
 			byte[] decPrivPart = engine.getDecryptedData(sessionKey, encReqPrivPart);
 
@@ -146,7 +147,7 @@
 		
 		EncryptedData encPrivPart = null;
 		try {
-            EncryptionEngine engine = getEncryptionEngine(sessionKey);
+            EncryptionEngine engine = EncryptionEngineFactory.getEncryptionEngineFor( sessionKey
);
 
 			encPrivPart = engine.getEncryptedData(sessionKey, encodedPrivPart);
 		} catch (KerberosException ke) {
@@ -167,7 +168,7 @@
 		
 		EncryptedData encRepPart = null;
 		try {
-            EncryptionEngine engine = getEncryptionEngine(ticket.getSessionKey());
+            EncryptionEngine engine = EncryptionEngineFactory.getEncryptionEngineFor( ticket.getSessionKey()
);
 
 			encRepPart = engine.getEncryptedData(ticket.getSessionKey(), encodedRepPart);
 		} catch (KerberosException ke) {



Mime
View raw message