From bfd93208cfdbd30bdcbc638af2e08c6be99f1d84 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Thu, 5 Jun 2014 14:22:52 +0200 Subject: Never switch String parameters around. --- src/main/java/com/c2kernel/process/Gateway.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/c2kernel/process/Gateway.java') diff --git a/src/main/java/com/c2kernel/process/Gateway.java b/src/main/java/com/c2kernel/process/Gateway.java index af24fe2..836b34b 100644 --- a/src/main/java/com/c2kernel/process/Gateway.java +++ b/src/main/java/com/c2kernel/process/Gateway.java @@ -234,7 +234,7 @@ public class Gateway throws InvalidDataException, ObjectNotFoundException, ClusterStorageException, InstantiationException, IllegalAccessException, ClassNotFoundException { Authenticator auth = (Authenticator)mC2KProps.getInstance("Authenticator"); - if (!auth.authenticate(resource, agentName, agentPassword)) + if (!auth.authenticate(agentName, agentPassword, resource)) throw new InvalidDataException("Login failed", ""); mLookup = (Lookup)mC2KProps.getInstance("Lookup"); -- cgit v1.2.3