Re: [Dev] [IS] Is there an API to access tenant key store

2015-07-22 Thread Thilini Cooray
Thank you Chamath for the update.

On Wed, Jul 22, 2015 at 3:06 PM, Chamath Gunawardana 
wrote:

> Hi Thilini,
>
> The refereed link by you is a temp location used by me for some time back.
> Hence please use [2] for the same artifact.
>
> [2] -
> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/platform-integration/test-automation-framework/4.2.8/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/security/KeyStoreAdminServiceClient.java
>
>
> Thanks,
> Chamath
>
> On Wed, Jul 22, 2015 at 12:40 PM, Thilini Cooray 
> wrote:
>
>> 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 > > 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 
>>> 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
>>
>>
>
>
> --
> Thanks,
> Best Regards,
> Chamath Gunawardana
> Technical Lead; WSO2 Inc.
> Mobile : +94776322240
>



-- 
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


Re: [Dev] [IS] Is there an API to access tenant key store

2015-07-22 Thread Chamath Gunawardana
Hi Thilini,

The refereed link by you is a temp location used by me for some time back.
Hence please use [2] for the same artifact.

[2] -
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/platform-integration/test-automation-framework/4.2.8/org.wso2.carbon.automation.api/src/main/java/org/wso2/carbon/automation/api/clients/security/KeyStoreAdminServiceClient.java


Thanks,
Chamath

On Wed, Jul 22, 2015 at 12:40 PM, Thilini Cooray  wrote:

> 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 
> 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 
>> 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
>
>


-- 
Thanks,
Best Regards,
Chamath Gunawardana
Technical Lead; WSO2 Inc.
Mobile : +94776322240
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Is there an API to access tenant key store

2015-07-22 Thread Thilini Cooray
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 
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 
> 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 > > 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


Re: [Dev] [IS] Is there an API to access tenant key store

2015-07-21 Thread Chathura Priyankara
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  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 
> 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


Re: [Dev] [IS] Is there an API to access tenant key store

2015-07-21 Thread Thilini Cooray
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 
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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Is there an API to access tenant key store

2015-07-21 Thread Chathura Priyankara
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