X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=security%2Fruntime%2Forg.argeo.security.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fsecurity%2Fjcr%2FRemoteJcrAuthenticationProvider.java;fp=security%2Fruntime%2Forg.argeo.security.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fsecurity%2Fjcr%2FRemoteJcrAuthenticationProvider.java;h=87208b2a32bf5d7a1bf8545fef22aa5fa2daa486;hb=126df37604bec868723c662f14071196a9c6c038;hp=b32ba8ea9ab25d5cd49f5469e3971a2a1b9c9f2c;hpb=469d8a3bd7a681cdb7e23ccb01cc299e0b8b681f;p=lgpl%2Fargeo-commons.git diff --git a/security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/jcr/RemoteJcrAuthenticationProvider.java b/security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/jcr/RemoteJcrAuthenticationProvider.java index b32ba8ea9..87208b2a3 100644 --- a/security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/jcr/RemoteJcrAuthenticationProvider.java +++ b/security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/jcr/RemoteJcrAuthenticationProvider.java @@ -16,8 +16,9 @@ package org.argeo.security.jcr; import java.util.ArrayList; +import java.util.Dictionary; +import java.util.Hashtable; import java.util.List; -import java.util.Properties; import javax.jcr.Node; import javax.jcr.Repository; @@ -64,12 +65,11 @@ public class RemoteJcrAuthenticationProvider implements AuthenticationProvider, Repository repository = new RemoteJcrRepositoryWrapper( repositoryFactory, url, sp); if (bundleContext != null) { - Properties serviceProperties = new Properties(); - serviceProperties.setProperty( - ArgeoJcrConstants.JCR_REPOSITORY_ALIAS, + Dictionary serviceProperties = new Hashtable(); + serviceProperties.put(ArgeoJcrConstants.JCR_REPOSITORY_ALIAS, ArgeoJcrConstants.ALIAS_NODE); - serviceProperties.setProperty( - ArgeoJcrConstants.JCR_REPOSITORY_URI, url); + serviceProperties + .put(ArgeoJcrConstants.JCR_REPOSITORY_URI, url); bundleContext.registerService(Repository.class.getName(), repository, serviceProperties); }