Thanks Dakshika,

I used javax.xml.bind.DatatypeConverter.printBase64Binary().

On Thu, Nov 12, 2015 at 11:58 AM, Dakshika Jayathilaka <[email protected]>
wrote:

> Hi,
>
> If your using jaggery sso module[1] you can use sso.client.b64encode() as
> wel.
>
> [1] https://github.com/wso2/jaggery-extensions/tree/master/sso
>
> Regards,
>
> *Dakshika Jayathilaka*
> PMC Member & Committer of Apache Stratos
> Senior Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Wed, Nov 11, 2015 at 4:38 PM, Kalpa Welivitigoda <[email protected]>
> wrote:
>
>> Thanks all.
>>
>> On Wed, Nov 11, 2015 at 3:32 PM, Inshaf Mahath <[email protected]> wrote:
>>
>>> Hi Kalpa,
>>>
>>> You can try on JavaScript to encode and decode base64 string. You can
>>> have a look on [1].
>>>
>>> [1]
>>> http://stackoverflow.com/questions/246801/how-can-you-encode-a-string-to-base64-in-javascript
>>>
>>>
>>> Thanks with best regards,
>>> Inshaf
>>>
>>> On Wed, Nov 11, 2015 at 3:24 PM, Nipuna Chandradasa <[email protected]>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Sorry for the typing mistake ...
>>>>
>>>> you can import the java method for Base64 encoding inside the jaggery
>>>> and use it ...
>>>>
>>>> Regards,
>>>>
>>>> On Wed, Nov 11, 2015 at 3:23 PM, Nipuna Chandradasa <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> As far as i know there is no inbuilt method for jaggery ....  but u
>>>>> import the java method for Base64 encoding inside the jaggery and use 
>>>>> it....
>>>>>
>>>>> Regards,
>>>>>
>>>>> On Wed, Nov 11, 2015 at 3:08 PM, Kalpa Welivitigoda <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> Is the $subject possible?
>>>>>>
>>>>>> My requirement is to encode username/password in Base64 to be used to
>>>>>> call a REST API.
>>>>>>
>>>>>> --
>>>>>> Best Regards,
>>>>>>
>>>>>> Kalpa Welivitigoda
>>>>>> Software Engineer, WSO2 Inc. http://wso2.com
>>>>>> Email: [email protected]
>>>>>> Mobile: +94776509215
>>>>>>
>>>>>> _______________________________________________
>>>>>> Dev mailing list
>>>>>> [email protected]
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Nipuna Marcus
>>>>> *Software Engineer*
>>>>> WSO2 Inc.
>>>>> http://wso2.com/ - "lean . enterprise . middleware"
>>>>> Mobile : +94 (0) 713 667906
>>>>> [email protected]
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Nipuna Marcus
>>>> *Software Engineer*
>>>> WSO2 Inc.
>>>> http://wso2.com/ - "lean . enterprise . middleware"
>>>> Mobile : +94 (0) 713 667906
>>>> [email protected]
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Inshaf Mahath
>>>
>>>
>>
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: [email protected]
>> Mobile: +94776509215
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: [email protected]
Mobile: +94776509215
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to