Hi,

Yes, you will be able to access the tenant key store via
KeyStoreAdminService.
[1] contains a KeyStoreAdminServiceClient which might be useful for you.

[1]
https://svn.wso2.org/repos/wso2/people/chamathg/sandbox/test-automation-framework/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/security/KeyStoreAdminServiceClient.java

Thanks.

On Wed, Jul 22, 2015 at 12:18 PM, Chathura Priyankara <chathu...@wso2.com>
wrote:

> Hi Thilini,
>
> We cannot get the key store manager instance as above mentioned way from a
> test case, because the test case is running out side of the OSGi
> environment of running server.
> So I think we have to get the tenant key store
> through KeyStoreAdminServiceStub.
>
> Thanks,
> Chathura.
>
> On Wed, Jul 22, 2015 at 10:49 AM, Thilini Cooray <thili...@wso2.com>
> wrote:
>
>> Hi,
>>
>> org.wso2.carbon.core.util.KeyStoreManager can be used for accessing
>> tenant key store as follows.
>>
>> KeyStoreManager tenantKeyStoreManager = 
>> KeyStoreManager.getInstance(tenantId);
>>
>> KeyStoreManager contains a function called "getKeyStore" for retrieving key 
>> store.
>>
>> Thanks.
>>
>>
>>
>> On Wed, Jul 22, 2015 at 10:35 AM, Chathura Priyankara <chathu...@wso2.com
>> > wrote:
>>
>>> Hi,
>>>
>>> I'm writing some test cases to test the multi-tenancy functionality in
>>> AS.
>>> For that I want to access tenant key store after adding a tenant. Is
>>> there any API to access tenant key store ?
>>>
>>> Thanks,
>>> Charhuara.
>>> --
>>> Chathura Priyankara
>>> Software Engineer | WSO2 Inc.
>>> Mobile : +94718795340
>>> Blog : www.codeoncloud.blogspot.com
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Best Regards,
>>
>> *Thilini Cooray*
>> Software Engineer
>> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
>> E-mail : thili...@wso2.com
>>
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> Chathura Priyankara
> Software Engineer | WSO2 Inc.
> Mobile : +94718795340
> Blog : www.codeoncloud.blogspot.com
>



-- 
Best Regards,

*Thilini Cooray*
Software Engineer
Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
E-mail : thili...@wso2.com

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to