[Registry-dev] Embedded registry initialization
Chathura C. Ekanayake
chathura at wso2.com
Tue Apr 22 09:03:18 PDT 2008
Hi Keith,
Thanks for pointing this out. I added the support for unauthenticated
user registry creation using the embedded registry.
Registry userRegistry2 = embeddedRegistry.getUserRegistry("username");
Please point out any further problems in using the new implementations.
Thanks,
Chathura
Keith Chapman wrote:
> Hi Chathura,
>
> The Mashup Server had a requirement where we wanted to create a
> secureRegistry giving the username only (without a password when
> infocard login is used). How will this be supported by the new
> implementation?
>
> Thanks,
> Keith.
>
> Chathura C. Ekanayake wrote:
>
>> Now all the authorizations of the registry are performed by the
>> components responsible for actual operations. So the SecureRegistry is
>> no longer required. Now all the operations are authorized and the
>> registry cannot be directly accessed through the JDBCRegistry. If an
>> application doesn't want to care about managing users, it can access the
>> registry as the system user. Creating registries for users is simplified
>> by the EmbeddedRegistry.
>>
>> Below are the steps for creating the EmbeddedRegistry and then obtaining
>> user registries from it.
>>
>> EmbeddedRegistry embeddedRegistry = new EmbeddedRegistry(datasource);
>>
>> // get the system registry
>> Registry systemRegistry = embeddedRegistry.getSystemRegistry();
>>
>> // get an anonymous user registry
>> Registry systemRegistry = embeddedRegistry.getRegistry();
>>
>> // get the user registry for the user "username"
>> Registry userRegistry1 = embeddedRegistry.getUserRegistry("username",
>> "password");
>>
>> In the above sample, the user realm for the registry is automatically
>> created from the same data source, where registry database is located.
>> If it is necessary to use a different realm, below constructor can be used.
>>
>> EmbeddedRegistry embeddedRegistry = new EmbeddedRegistry(datasource,
>> realm);
>>
>> Below constructor can be used to create registry from an in-memory
>> database.
>>
>> EmbeddedRegistry embeddedRegistry = new InMemoryEmbeddedRegistry();
>>
>> Thanks,
>> Chathura
>>
>>
>>
>>
>>
>> _______________________________________________
>> Registry-dev mailing list
>> Registry-dev at wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/registry-dev
>>
>>
>
>
> _______________________________________________
> Registry-dev mailing list
> Registry-dev at wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/registry-dev
>
>
More information about the Registry-dev
mailing list