In the same class there is a method called getDefaultPrivateKey AFAIR

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729


On Feb 18, 2016 11:10 AM, "Tharinda Ehelepola" <tharin...@wso2.com> wrote:

> Hi Godwin,
>
> That's what I need. And also I need to access the private key. Can you
> please share any code example on git relevant for this.
>
> Thanks,
> Tharinda.
>
> On Thu, Feb 18, 2016 at 10:57 AM, Godwin Shrimal <god...@wso2.com> wrote:
>
>> Hi Tharinda,
>>
>> If you need to do this in carbon runtime, you can use KeyStoreManager
>> class as follows to get public certificate of the keystore in super and
>> other tenants.
>>
>> KeyStoreManager.getInstance(tenantID).getDefaultPublicKey();
>>
>>
>> Thanks
>> Godwin
>>
>> On Thu, Feb 18, 2016 at 10:42 AM, Tharinda Ehelepola <tharin...@wso2.com>
>> wrote:
>>
>>> Hi ,
>>>
>>> According to the subject I need to access EMM public key certificate
>>> which is stored in "wso2carbon.jks". How can I do it?
>>>
>>> Regards,
>>> Tharinda.
>>> --
>>>
>>> *Tharinda Ehelepola*
>>>
>>> *Software Engineering Intern*
>>> LinkedIn <https://lk.linkedin.com/in/tharindadilshan>
>>> TP :      94711834769
>>> Email: tharin...@wso2.com
>>> Web: tharinda.tk
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>> twitter: https://twitter.com/godwinamila
>>
>
>
>
> --
>
> *Tharinda Ehelepola*
>
> *Software Engineering Intern*
> LinkedIn <https://lk.linkedin.com/in/tharindadilshan>
> TP :      94711834769
> Email: tharin...@wso2.com
> Web: tharinda.tk
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to