Hi Shakila,

Thanks a lot.

On Mon, Oct 8, 2018 at 12:06 PM Shakila Sasikaran <[email protected]> wrote:

> Hi Aman,
>
> You can implement the class mediator with your java logic and use that in
> your mediation flow. Please find the documentation [1]. Once you implement
> & build the mediator, you can follow the *Basic approach* in the
> documentation [1] to deploy the mediator.
>
> [1] *https://docs.wso2.com/display/EI620/Writing+an+ESB+Mediator
> <https://docs.wso2.com/display/EI620/Writing+an+ESB+Mediator>*
>
> Thanks
>
> On Mon, Oct 8, 2018 at 11:22 AM Aman Singh <[email protected]>
> wrote:
>
>> Hi Shakila,
>>
>> I tried doing encryption-decryption of a sample String using Java program
>> successfully. Is there any way in WSO2 to do the same without Java program?
>> Like some connector of mediator that can do this in WSO2?
>>
>> Thank you,
>> Aman.
>>
>> On Fri, Oct 5, 2018 at 10:11 AM Shakila Sasikaran <[email protected]>
>> wrote:
>>
>>> Hi aman,
>>>
>>> There is no way to do the encryption with file connector.
>>>
>>> Thanks
>>>
>>> On Fri, Oct 5, 2018 at 9:17 AM Aman Singh <[email protected]>
>>> wrote:
>>>
>>>> Dear Shakila,
>>>>
>>>> Below code of mine copies a simple JSON file "Person.json", from my
>>>> server location to my local windows machine:-
>>>>
>>>> <proxy name="FTPFileProxy" startOnLoad="true" transports="http https"
>>>> xmlns="http://ws.apache.org/ns/synapse";>
>>>>     <target>
>>>>         <inSequence>
>>>>             <fileconnector.copy>
>>>>                 <source>sftp://{username}:{password}@
>>>> {hostname}/home/myfolder/input/Person.json</source>
>>>>                 <destination>file:///D:/destination</destination>
>>>>                 <setTimeout>100000</setTimeout>
>>>>                 <setPassiveMode>true</setPassiveMode>
>>>>                 <setSoTimeout>100000</setSoTimeout>
>>>>             </fileconnector.copy>
>>>>         </inSequence>
>>>>         <outSequence/>
>>>>         <faultSequence/>
>>>>     </target>
>>>> </proxy>
>>>>
>>>> I already have "public" and "private" keys with me.
>>>>
>>>> How can I do/use encryption and decryption to securely transfer my file
>>>> between server and local machine?
>>>>
>>>> I searched on net but not able to find much information.
>>>>
>>>> Thank you,
>>>> Aman
>>>>
>>>> On Fri, Oct 5, 2018 at 8:54 AM Shakila Sasikaran <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi Aman,
>>>>>
>>>>> Could you please share the sample to understand the use-case?
>>>>>
>>>>> Thanks
>>>>>
>>>>> On Thu, Oct 4, 2018 at 9:32 AM Aman Singh <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Dear Shakila,
>>>>>>
>>>>>> I am using SFTP to transfer a file placed on my server to my local
>>>>>> machine and vice-versa. I am successfully able to transfer it. I want to
>>>>>> use encryption and decryption to transfer my files securely, like using
>>>>>> some public/private key concept to do that.  Is this possible?
>>>>>> How can I achieve this?
>>>>>>
>>>>>> Your help would be much appreciated.
>>>>>>
>>>>>> Thank you,
>>>>>> Aman.
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Shakila Sasikaran
>>>>> Software Engineer
>>>>> Mobile :+94 (0) 77 526 6848
>>>>> [email protected]
>>>>> WSO2, Inc.
>>>>> lean . enterprise . middleware
>>>>> http://www.wso2.com/
>>>>>
>>>>
>>>
>>> --
>>> Shakila Sasikaran
>>> Software Engineer
>>> Mobile :+94 (0) 77 526 6848
>>> [email protected]
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>>
>>
>
> --
> Shakila Sasikaran
> Software Engineer
> Mobile :+94 (0) 77 526 6848
> [email protected]
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to