Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2009-03-08 01:13:57 +0000
committerslewis2009-03-08 01:13:57 +0000
commit95a69c26a178085c24b952411081c83ac940408b (patch)
treec97dad206669fca4a35224c2cfc6e43e3f77b104 /providers
parent647fd8616d005d59c5d377d7d6c6f86a5575471e (diff)
downloadorg.eclipse.ecf-95a69c26a178085c24b952411081c83ac940408b.tar.gz
org.eclipse.ecf-95a69c26a178085c24b952411081c83ac940408b.tar.xz
org.eclipse.ecf-95a69c26a178085c24b952411081c83ac940408b.zip
Added API for setConnectContextForAuthentication with implementations for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=267523
Diffstat (limited to 'providers')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RegistrySharedObject.java7
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RemoteServiceContainer.java5
2 files changed, 12 insertions, 0 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RegistrySharedObject.java b/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RegistrySharedObject.java
index e7b30a1a2..68ea6c408 100644
--- a/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RegistrySharedObject.java
+++ b/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RegistrySharedObject.java
@@ -18,6 +18,7 @@ import org.eclipse.ecf.core.events.IContainerConnectedEvent;
import org.eclipse.ecf.core.events.IContainerDisconnectedEvent;
import org.eclipse.ecf.core.identity.*;
import org.eclipse.ecf.core.jobs.JobsExecutor;
+import org.eclipse.ecf.core.security.IConnectContext;
import org.eclipse.ecf.core.sharedobject.*;
import org.eclipse.ecf.core.sharedobject.events.ISharedObjectActivatedEvent;
import org.eclipse.ecf.core.util.*;
@@ -42,6 +43,8 @@ public class RegistrySharedObject extends BaseSharedObject implements IRemoteSer
protected List requests = Collections.synchronizedList(new ArrayList());
+ protected IConnectContext connectContext;
+
public RegistrySharedObject() {
//
}
@@ -1113,4 +1116,8 @@ public class RegistrySharedObject extends BaseSharedObject implements IRemoteSer
}
return null;
}
+
+ public void setConnectContextForAuthentication(IConnectContext connectContext) {
+ this.connectContext = connectContext;
+ }
}
diff --git a/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RemoteServiceContainer.java b/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RemoteServiceContainer.java
index 579eeb1e0..9fff618dd 100644
--- a/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RemoteServiceContainer.java
+++ b/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RemoteServiceContainer.java
@@ -11,6 +11,7 @@ package org.eclipse.ecf.provider.remoteservice.generic;
import java.util.Dictionary;
import org.eclipse.ecf.core.identity.ID;
import org.eclipse.ecf.core.identity.Namespace;
+import org.eclipse.ecf.core.security.IConnectContext;
import org.eclipse.ecf.core.sharedobject.ISharedObjectContainerConfig;
import org.eclipse.ecf.provider.generic.TCPClientSOContainer;
import org.eclipse.ecf.remoteservice.*;
@@ -93,4 +94,8 @@ public class RemoteServiceContainer extends TCPClientSOContainer implements IRem
public IRemoteServiceID getRemoteServiceID(ID containerID, long containerRelativeID) {
return registry.getRemoteServiceID(containerID, containerRelativeID);
}
+
+ public void setConnectContextForAuthentication(IConnectContext connectContext) {
+ registry.setConnectContextForAuthentication(connectContext);
+ }
}

Back to the top