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
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev